olp-cpp-sdk
1.22.0
|
A shared mutex type that can be locked exclusively by one thread or shared non-exclusively by multiple threads. More...
#include <shared_mutex.h>
Public Member Functions | |
shared_mutex (const shared_mutex &)=delete | |
shared_mutex & | operator= (const shared_mutex &)=delete |
void | lock () |
Takes ownership of the associated mutex. | |
bool | try_lock () |
Tries to take ownership of the mutex without blocking. More... | |
void | unlock () |
Releases the ownership of the mutex from the calling thread. | |
void | lock_shared () |
Blocks the calling thread until the thread obtains shared ownership of the mutex. | |
bool | try_lock_shared () |
Tries to take shared ownership of the mutex without blocking. More... | |
void | unlock_shared () |
Releases the shared ownership of the mutex from the calling thread. | |
A shared mutex type that can be locked exclusively by one thread or shared non-exclusively by multiple threads.
|
inline |
Tries to take ownership of the mutex without blocking.
|
inline |
Tries to take shared ownership of the mutex without blocking.