|
LogCabin
|
Proof that the caller is holding some mutex. More...
#include <Mutex.h>
Public Member Functions | |
| template<typename Mutex > | |
| HoldingMutex (const std::lock_guard< Mutex > &lockGuard) | |
| Constructor from std::lock_guard. | |
| template<typename Mutex > | |
| HoldingMutex (const std::unique_lock< Mutex > &lockGuard) | |
| Constructor from std::unique_lock. | |
Proof that the caller is holding some mutex.
Useful as an additional (unused) argument for some private methods that want to ensure the caller is holding a lock.
| LogCabin::Core::HoldingMutex::HoldingMutex | ( | const std::lock_guard< Mutex > & | lockGuard | ) | [inline, explicit] |
| LogCabin::Core::HoldingMutex::HoldingMutex | ( | const std::unique_lock< Mutex > & | lockGuard | ) | [inline, explicit] |
1.7.6.1