![]() |
BSHA3
0.17.99
P2P Blockchain, based on Bitcoin
|
Wrapper around std::unique_lock style lock for Mutex. More...
#include <sync.h>
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 () | |
Private Member Functions | |
void | Enter (const char *pszName, const char *pszFile, int nLine) |
bool | TryEnter (const char *pszName, const char *pszFile, int nLine) |
Wrapper around std::unique_lock style lock for Mutex.
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inlineprivate |