(cleanup) Improve rtabort message for atomic-sleep.
This commit is contained in:
parent
8ebdb37fd2
commit
fb1575bcc4
1 changed files with 2 additions and 1 deletions
|
@ -590,7 +590,8 @@ impl Death {
|
|||
#[inline]
|
||||
pub fn assert_may_sleep(&self) {
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue