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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Called by writers to awaken waiting readers

Returns whether writers need to call notify Optimized the various BusyWait variants Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.