emilib
|
This is a drop-in replacement for C++14's std::shared_lock. More...
#include <read_write_mutex.hpp>
Public Member Functions | |
ReadLock (MutexType &mut) | |
ReadLock (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++14's std::shared_lock.