Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | List of all members
UniqueLock< MutexType >::reverse_lock Class Reference

An RAII-style reverse lock. More...

#include <sync.h>

Collaboration diagram for UniqueLock< MutexType >::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 MutexType>
class UniqueLock< MutexType >::reverse_lock

An RAII-style reverse lock.

Unlocks on construction and locks on destruction.

Definition at line 215 of file sync.h.

Constructor & Destructor Documentation

◆ reverse_lock() [1/2]

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

Definition at line 217 of file sync.h.

Here is the call graph for this function:

◆ ~reverse_lock()

template<typename MutexType >
UniqueLock< MutexType >::reverse_lock::~reverse_lock ( )
inline

Definition at line 224 of file sync.h.

Here is the call graph for this function:

◆ reverse_lock() [2/2]

template<typename MutexType >
UniqueLock< MutexType >::reverse_lock::reverse_lock ( reverse_lock const &  )
private

Member Function Documentation

◆ operator=()

template<typename MutexType >
reverse_lock& UniqueLock< MutexType >::reverse_lock::operator= ( reverse_lock const &  )
private

Member Data Documentation

◆ file

template<typename MutexType >
const std::string UniqueLock< MutexType >::reverse_lock::file
private

Definition at line 237 of file sync.h.

◆ line

template<typename MutexType >
const int UniqueLock< MutexType >::reverse_lock::line
private

Definition at line 238 of file sync.h.

◆ lock

template<typename MutexType >
UniqueLock& UniqueLock< MutexType >::reverse_lock::lock
private

Definition at line 234 of file sync.h.

◆ lockname

template<typename MutexType >
std::string UniqueLock< MutexType >::reverse_lock::lockname
private

Definition at line 236 of file sync.h.

◆ templock

template<typename MutexType >
UniqueLock UniqueLock< MutexType >::reverse_lock::templock
private

Definition at line 235 of file sync.h.


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