Struct multiqueue::wait::YieldingWait [−][src]
pub struct YieldingWait { /* fields omitted */ }Expand description
This spins on the queue for a few iterations and then starts yielding intermittently
Implementations
Calls with_spins(DEFAULT_TRY_SPINS, DEFAULT_YIELD_SPINS)
Constructs a YieldingWait that busywaits for spins_first spins and then yields every spins_yield spins.
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
