Bitcoin Core  0.20.99
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | List of all members
UniqueLock< Mutex, Base >::reverse_lock Class Reference

An RAII-style reverse lock. More...

#include <sync.h>

Collaboration diagram for UniqueLock< Mutex, Base >::reverse_lock:
[legend]

Public Member Functions

 reverse_lock (UniqueLock &_lock, const char *_guardname, const char *_file, int _line)
 
 ~reverse_lock ()
 

Private Member Functions

 reverse_lock (reverse_lock const &)
 
reverse_lockoperator= (reverse_lock const &)
 

Private Attributes

UniqueLocklock
 
UniqueLock templock
 
std::string lockname
 
const std::string file
 
const int line
 

Detailed Description

template<typename Mutex, typename Base = typename Mutex::UniqueLock>
class UniqueLock< Mutex, Base >::reverse_lock

An RAII-style reverse lock.

Unlocks on construction and locks on destruction.

Definition at line 193 of file sync.h.

Constructor & Destructor Documentation

◆ reverse_lock() [1/2]

template<typename Mutex, typename Base = typename Mutex::UniqueLock>
UniqueLock< Mutex, Base >::reverse_lock::reverse_lock ( UniqueLock _lock,
const char *  _guardname,
const char *  _file,
int  _line 
)
inlineexplicit

Definition at line 195 of file sync.h.

Here is the call graph for this function:

◆ ~reverse_lock()

template<typename Mutex, typename Base = typename Mutex::UniqueLock>
UniqueLock< Mutex, Base >::reverse_lock::~reverse_lock ( )
inline

Definition at line 202 of file sync.h.

Here is the call graph for this function:

◆ reverse_lock() [2/2]

template<typename Mutex, typename Base = typename Mutex::UniqueLock>
UniqueLock< Mutex, Base >::reverse_lock::reverse_lock ( reverse_lock const &  )
private

Member Function Documentation

◆ operator=()

template<typename Mutex, typename Base = typename Mutex::UniqueLock>
reverse_lock& UniqueLock< Mutex, Base >::reverse_lock::operator= ( reverse_lock const &  )
private

Member Data Documentation

◆ file

template<typename Mutex, typename Base = typename Mutex::UniqueLock>
const std::string UniqueLock< Mutex, Base >::reverse_lock::file
private

Definition at line 215 of file sync.h.

◆ line

template<typename Mutex, typename Base = typename Mutex::UniqueLock>
const int UniqueLock< Mutex, Base >::reverse_lock::line
private

Definition at line 216 of file sync.h.

◆ lock

template<typename Mutex, typename Base = typename Mutex::UniqueLock>
UniqueLock& UniqueLock< Mutex, Base >::reverse_lock::lock
private

Definition at line 212 of file sync.h.

◆ lockname

template<typename Mutex, typename Base = typename Mutex::UniqueLock>
std::string UniqueLock< Mutex, Base >::reverse_lock::lockname
private

Definition at line 214 of file sync.h.

◆ templock

template<typename Mutex, typename Base = typename Mutex::UniqueLock>
UniqueLock UniqueLock< Mutex, Base >::reverse_lock::templock
private

Definition at line 213 of file sync.h.


The documentation for this class was generated from the following file: