Class PosixRWMutex¶
Defined in File posix_rw_mutex.h
Class Documentation¶
-
class PosixRWMutex¶
Implementation of the Mutex and SharedMutex C++14 concepts via POSIX pthread rwlock.
The advantages of using this over std::shared_timed_mutex are: a) The type of rwlock can be selected (as per pthread_rwlock_attr_setkind_np) b) As per POSIX, read locks are recursive rather than undefined behaviour
Public Types
Public Functions
-
PosixRWMutex()¶
-
~PosixRWMutex()¶
-
PosixRWMutex(PosixRWMutex const&) = delete¶
-
PosixRWMutex &operator=(PosixRWMutex const&) = delete¶
-
void lock()¶
-
bool try_lock()¶
-
void unlock()¶
-
PosixRWMutex()¶