Module shared_mutex::monitor [] [src]

A monitor convenience type that couples a SharedMutex and a Condvar.

This type is more convenient to use but a little bit less general than SharedMutex since the monitor uses only one condition variable, whereas a SharedMutex can be used with any number of condition variables.

Structs

Monitor

A convenience wrapper around a SharedMutex and a Condvar.

MonitorReadGuard

A shared read guard to the data in a Monitor.

MonitorWriteGuard

An exclusive write guard to the data in a Monitor.