Enum miri::BlockReason
source · pub enum BlockReason {
Join(ThreadId),
Sleep,
Mutex(MutexId),
Condvar(CondvarId),
RwLock(RwLockId),
Futex {
addr: u64,
},
InitOnce(InitOnceId),
}
Expand description
Keeps track of what the thread is blocked on.
Variants§
Join(ThreadId)
The thread tried to join the specified thread and is blocked until that thread terminates.
Sleep
Waiting for time to pass.
Mutex(MutexId)
Blocked on a mutex.
Condvar(CondvarId)
Blocked on a condition variable.
RwLock(RwLockId)
Blocked on a reader-writer lock.
Futex
Blocked on a Futex variable.
InitOnce(InitOnceId)
Blocked on an InitOnce.
Trait Implementations§
source§impl Clone for BlockReason
impl Clone for BlockReason
source§fn clone(&self) -> BlockReason
fn clone(&self) -> BlockReason
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BlockReason
impl Debug for BlockReason
source§impl PartialEq for BlockReason
impl PartialEq for BlockReason
source§fn eq(&self, other: &BlockReason) -> bool
fn eq(&self, other: &BlockReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BlockReason
impl Eq for BlockReason
impl StructuralPartialEq for BlockReason
Auto Trait Implementations§
impl Freeze for BlockReason
impl RefUnwindSafe for BlockReason
impl Send for BlockReason
impl Sync for BlockReason
impl Unpin for BlockReason
impl UnwindSafe for BlockReason
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more