(cleanup) Improve rtabort message for atomic-sleep.

This commit is contained in:
Ben Blum 2013-08-05 20:14:20 -04:00
parent 678f506abe
commit d803c18bbf

View File

@ -590,7 +590,8 @@ impl Death {
#[inline] #[inline]
pub fn assert_may_sleep(&self) { pub fn assert_may_sleep(&self) {
if self.wont_sleep != 0 { if self.wont_sleep != 0 {
rtabort!("illegal atomic-sleep: can't deschedule inside atomically()"); rtabort!("illegal atomic-sleep: attempt to reschedule while \
using an Exclusive or LittleLock");
} }
} }
} }