Shared mutex wrapper with reader-writer lock semantics.
More...
#include <sync_primitives.h>
Shared mutex wrapper with reader-writer lock semantics.
Definition at line 236 of file sync_primitives.h.
◆ shared_mutex_wrapper() [1/6]
| kcenon::thread::sync::shared_mutex_wrapper::shared_mutex_wrapper |
( |
| ) |
|
|
default |
◆ ~shared_mutex_wrapper() [1/2]
| kcenon::thread::sync::shared_mutex_wrapper::~shared_mutex_wrapper |
( |
| ) |
|
|
default |
◆ shared_mutex_wrapper() [2/6]
◆ shared_mutex_wrapper() [3/6]
◆ shared_mutex_wrapper() [4/6]
| kcenon::thread::sync::shared_mutex_wrapper::shared_mutex_wrapper |
( |
| ) |
|
|
default |
◆ ~shared_mutex_wrapper() [2/2]
| kcenon::thread::sync::shared_mutex_wrapper::~shared_mutex_wrapper |
( |
| ) |
|
|
default |
◆ shared_mutex_wrapper() [5/6]
◆ shared_mutex_wrapper() [6/6]
◆ lock() [1/2]
| void kcenon::thread::sync::shared_mutex_wrapper::lock |
( |
| ) |
|
|
inline |
◆ lock() [2/2]
| void kcenon::thread::sync::shared_mutex_wrapper::lock |
( |
| ) |
|
|
inline |
◆ lock_shared() [1/2]
| void kcenon::thread::sync::shared_mutex_wrapper::lock_shared |
( |
| ) |
|
|
inline |
◆ lock_shared() [2/2]
| void kcenon::thread::sync::shared_mutex_wrapper::lock_shared |
( |
| ) |
|
|
inline |
◆ operator=() [1/4]
◆ operator=() [2/4]
◆ operator=() [3/4]
◆ operator=() [4/4]
◆ try_lock() [1/2]
| bool kcenon::thread::sync::shared_mutex_wrapper::try_lock |
( |
| ) |
|
|
inline |
Try to acquire exclusive (writer) lock.
- Returns
- true if lock was acquired, false otherwise
Definition at line 252 of file sync_primitives.h.
References mutex_.
◆ try_lock() [2/2]
| bool kcenon::thread::sync::shared_mutex_wrapper::try_lock |
( |
| ) |
|
|
inline |
Try to acquire exclusive (writer) lock.
- Returns
- true if lock was acquired, false otherwise
Definition at line 258 of file sync_primitives.h.
References mutex_.
◆ try_lock_shared() [1/2]
| bool kcenon::thread::sync::shared_mutex_wrapper::try_lock_shared |
( |
| ) |
|
|
inline |
Try to acquire shared (reader) lock.
- Returns
- true if lock was acquired, false otherwise
Definition at line 274 of file sync_primitives.h.
274 {
275 return mutex_.try_lock_shared();
276 }
References mutex_.
◆ try_lock_shared() [2/2]
| bool kcenon::thread::sync::shared_mutex_wrapper::try_lock_shared |
( |
| ) |
|
|
inline |
Try to acquire shared (reader) lock.
- Returns
- true if lock was acquired, false otherwise
Definition at line 280 of file sync_primitives.h.
280 {
281 return mutex_.try_lock_shared();
282 }
References mutex_.
◆ unlock() [1/2]
| void kcenon::thread::sync::shared_mutex_wrapper::unlock |
( |
| ) |
|
|
inline |
◆ unlock() [2/2]
| void kcenon::thread::sync::shared_mutex_wrapper::unlock |
( |
| ) |
|
|
inline |
◆ unlock_shared() [1/2]
| void kcenon::thread::sync::shared_mutex_wrapper::unlock_shared |
( |
| ) |
|
|
inline |
◆ unlock_shared() [2/2]
| void kcenon::thread::sync::shared_mutex_wrapper::unlock_shared |
( |
| ) |
|
|
inline |
◆ mutex_
| std::shared_mutex kcenon::thread::sync::shared_mutex_wrapper::mutex_ |
|
private |
The documentation for this class was generated from the following files: