18 #ifndef LUNCHBOX_SCOPEDMUTEX_H 19 #define LUNCHBOX_SCOPEDMUTEX_H 21 #include <lunchbox/lockable.h> 51 template <
typename LB>
61 _lock->unlock_shared();
86 : std::unique_lock<L>(lock_ ? std::unique_lock<L>(*lock_)
87 : std::unique_lock<L>())
92 : std::unique_lock<L>(lock_)
96 template <
typename LB>
120 #endif // LUNCHBOX_SCOPEDMUTEX_H Basic type definitions not provided by the operating system.
~UniqueSharedLock()
Destruct the scoped mutex and unset the mutex.
Abstraction layer and common utilities for multi-threaded programming.