Enum r3::sync::recursive_mutex::LockError
source · #[repr(i8)]
pub enum LockError<Guard> {
BadContext,
Interrupted,
BadParam,
Abandoned(Guard),
}
Available on crate feature
sync
only.Expand description
Error type of GenericRecursiveMutex::lock
.
Variants§
BadContext
CPU Lock is active, or the current context is not waitable.
Interrupted
The wait operation was interrupted by Task::interrupt
.
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.