#[repr(i8)]
pub enum LockError<Guard> {
BadContext,
Interrupted,
WouldDeadlock,
BadParam,
Abandoned(Guard),
}
Available on crate feature
sync
only.Expand description
Error type of GenericMutex::lock
.
Variants§
BadContext
CPU Lock is active, or the current context is not waitable.
Interrupted
The wait operation was interrupted by Task::interrupt
.
WouldDeadlock
The current task already owns the mutex.
BadParam
The mutex was created with the protocol attribute having the value
Ceiling
and the current task’s priority is higher than the
mutex’s priority ceiling.
Abandoned(Guard)
The previous owning task exited while holding the mutex lock. The current task shall hold the mutex lock, but is up to make the state consistent.