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 }
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
impl Clone for UnparkResult
[src]
impl Clone for UnparkResult
[src]fn clone(&self) -> UnparkResult
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for UnparkResult
[src]
impl Default for UnparkResult
[src]fn default() -> UnparkResult
[src]
impl PartialEq<UnparkResult> for UnparkResult
[src]
impl PartialEq<UnparkResult> for UnparkResult
[src]