Bitcoin ABC 0.30.7
P2P Digital Currency
|
Wrapper around std::unique_lock style lock for Mutex. More...
#include <sync.h>
Classes | |
class | reverse_lock |
An RAII-style reverse lock. More... | |
Public Member Functions | |
UniqueLock (Mutex &mutexIn, const char *pszName, const char *pszFile, int nLine, bool fTry=false) EXCLUSIVE_LOCK_FUNCTION(mutexIn) | |
UniqueLock (Mutex *pmutexIn, const char *pszName, const char *pszFile, int nLine, bool fTry=false) EXCLUSIVE_LOCK_FUNCTION(pmutexIn) | |
~UniqueLock () UNLOCK_FUNCTION() | |
operator bool () | |
Protected Member Functions | |
UniqueLock () | |
Private Member Functions | |
void | Enter (const char *pszName, const char *pszFile, int nLine) |
bool | TryEnter (const char *pszName, const char *pszFile, int nLine) |
Friends | |
class | reverse_lock |
Wrapper around std::unique_lock style lock for Mutex.
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprivate |
|
inline |
|
inlineprivate |
|
friend |