Struct parking_lot_core::UnparkResult [−][src]
pub struct UnparkResult {
pub unparked_threads: usize,
pub requeued_threads: usize,
pub have_more_threads: bool,
pub be_fair: bool,
// some fields omitted
}
Expand description
Result of an unpark operation.
Fields
unparked_threads: usize
The number of threads that were unparked.
requeued_threads: usize
The number of threads that were requeued.
have_more_threads: bool
Whether there are any threads remaining in the queue. This only returns true if a thread was unparked.
be_fair: bool
This is set to true on average once every 0.5ms for any given key. It should be used to switch to a fair unlocking mechanism for a particular unlock.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for UnparkResult
impl Send for UnparkResult
impl Sync for UnparkResult
impl Unpin for UnparkResult
impl UnwindSafe for UnparkResult
Blanket Implementations
Mutably borrows from an owned value. Read more