|
emilib
|
This is a drop-in replacement for C++11's std::unique_lock. More...
#include <read_write_mutex.hpp>
Public Member Functions | |
| WriteLock (MutexType &mut) | |
| WriteLock (MutexType &mut, std::defer_lock_t) | |
| Won't lock right away. | |
| void | lock () |
| Lock, unless already locked. | |
| bool | try_lock () |
| Does not block. Returns true iff the mutex is locked by this thread after the call. | |
| void | unlock () |
| unlock, unless already unlocked. | |
This is a drop-in replacement for C++11's std::unique_lock.
1.8.13