6#ifndef BITCOIN_UTIL_STDMUTEX_H
7#define BITCOIN_UTIL_STDMUTEX_H
26 const StdMutex& operator!()
const {
return *
this; }
41#define STDLOCK(cs) StdMutex::Guard UNIQUE_NAME(criticalblock){StdMutex::CheckNotHeld(cs)}
Guard(StdMutex &cs) EXCLUSIVE_LOCK_FUNCTION(cs)
~Guard() UNLOCK_FUNCTION()=default
#define EXCLUSIVE_LOCKS_REQUIRED(...)
#define EXCLUSIVE_LOCK_FUNCTION(...)
#define UNLOCK_FUNCTION(...)