|
Lunchbox
1.17.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
|
A scoped shared mutex. More...
#include <scopedMutex.h>
Collaboration diagram for lunchbox::UniqueSharedLock< L >:Public Member Functions | |
| UniqueSharedLock (L &lock) | |
| UniqueSharedLock (L *lock) | |
| template<typename LB > | |
| UniqueSharedLock (const LB &lockable) | |
| ~UniqueSharedLock () | |
| Destruct the scoped mutex and unset the mutex. More... | |
A scoped shared mutex.
The mutex is automatically set upon creation, and released when the scoped mutex is destroyed, e.g., when the scope is left. The scoped mutex does nothing if a nullptr for the lock is passed.
Definition at line 35 of file scopedMutex.h.
|
inline |
Destruct the scoped mutex and unset the mutex.
Definition at line 58 of file scopedMutex.h.