Bitcoin Core 28.99.0
P2P Digital Currency
|
Wrapper around std::unique_lock style lock for MutexType. More...
#include <sync.h>
Classes | |
class | reverse_lock |
An RAII-style reverse lock. More... | |
Public Member Functions | |
UniqueLock (MutexType &mutexIn, const char *pszName, const char *pszFile, int nLine, bool fTry=false) EXCLUSIVE_LOCK_FUNCTION(mutexIn) | |
UniqueLock (MutexType *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 ()=default | |
Private Types | |
using | Base = typename MutexType::unique_lock |
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 MutexType.
|
private |
|
inline |
|
inline |
|
inline |
|
protecteddefault |
|
inlineprivate |
|
inline |
|
inlineprivate |
|
friend |