15 #ifndef A_UTIL_UTIL_CONCURRENCY_SHARED_MUTEX_HEADER_INCLUDED
16 #define A_UTIL_UTIL_CONCURRENCY_SHARED_MUTEX_HEADER_INCLUDED
21 namespace concurrency {
31 std::unique_ptr<impl> p;
A shared_mutex class as a workaround for std::shared_timed_mutex.
bool try_lock_shared()
Try to lock the mutex for shared ownership.
~shared_mutex()
DTOR - does not call unlock!
void unlock_shared()
Unlock the mutex (shared ownership)
void lock_shared()
Lock the mutex for shared ownership, blocks if the mutex is not available.
shared_mutex()
CTOR - creates the mutex in an unlocked state.
void unlock()
Unlock the mutex.
bool try_lock()
Try to lock the mutex.
void lock()
Lock the mutex, blocks if the mutex is not available.
Serves as the root component, with common functionality documented in core functionality.