Apache Mesos
|
ReadWriteLock is a lock that allows concurrent reads and exclusive writes. More...
#include <rwlock.hpp>
Public Member Functions | |
ReadWriteLock () | |
Future< Nothing > | write_lock () |
void | write_unlock () |
Future< Nothing > | read_lock () |
void | read_unlock () |
ReadWriteLock is a lock that allows concurrent reads and exclusive writes.
To prevent starvation of write lock requests, reads will queue when one or more write lock requests is waiting, even if the read lock is currently acquired.
|
inline |
|
inline |
|
inline |