Struct multiqueue::wait::BlockingWait [−][src]
pub struct BlockingWait { /* fields omitted */ }Expand description
This tries spinning on the queue for a short while, then yielding, and then blocks
Implementations
Calls with_spins(DEFAULT_TRY_SPINS, DEFAULT_YIELD_SPINS)
Constructs a YieldingWait that busywaits for spins_first spins and then yields for spins_yield spins, then blocks on a condition variable.
Trait Implementations
Causes the reader to block until the queue is available. Is passed the queue tag which the readers are waiting on, a reference to the corresponding AtomicUsize, and a reference to the number of writers Read more
Returns whether writers need to call notify Optimized the various BusyWait variants Read more
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
