Lunchbox
1.16.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
|
A scoped mutex. More...
#include <scopedMutex.h>
Public Member Functions | |
UniqueLock (L *lock_) | |
UniqueLock (L &lock_) | |
template<typename LB > | |
UniqueLock (const LB &lockable) | |
A scoped 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 82 of file scopedMutex.h.