Struct lrs::sync::Condvar

A condition variable to wait on mutexes.

Syntax

struct Condvar {
    /* private fields */
}

Methods

ReceiverNameDescription
&selfsignal

Wakes a number of threads waiting on this condvar.

&selfwait

Atomically unlocks a mutex guard and waits for a signal on this condvar before re-locking the mutex.

&selfwait2

Atomically unlocks a mutex guard and waits for a signal on this condvar.

Remarks

This implementation cannot be used for inter-process synchronization.