A condition variable to wait on mutexes.
struct Condvar {
/* private fields */
}| Receiver | Name | Description |
|---|---|---|
&self | signal | Wakes a number of threads waiting on this condvar. |
&self | wait | Atomically unlocks a mutex guard and waits for a signal on this condvar before re-locking the mutex. |
&self | wait2 | Atomically unlocks a mutex guard and waits for a signal on this condvar. |
This implementation cannot be used for inter-process synchronization.