Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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 234 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 236 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 246 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 259 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 260 of file sync.h.

◆ lock

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

Definition at line 256 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 258 of file sync.h.

◆ templock

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

Definition at line 257 of file sync.h.


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