Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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 MutexType &mutex, const char *_guardname, const char *_file, int _line) UNLOCK_FUNCTION(mutex)
 ~reverse_lock () UNLOCK_FUNCTION()

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 209 of file sync.h.

Constructor & Destructor Documentation

◆ reverse_lock() [1/2]

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

Definition at line 211 of file sync.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~reverse_lock()

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

Definition at line 221 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
Here is the call graph for this function:

Member Function Documentation

◆ operator=()

template<typename MutexType>
reverse_lock & UniqueLock< MutexType >::reverse_lock::operator= ( reverse_lock const & )
private
Here is the call graph for this function:

Member Data Documentation

◆ file

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

Definition at line 234 of file sync.h.

◆ line

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

Definition at line 235 of file sync.h.

◆ lock

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

Definition at line 231 of file sync.h.

◆ lockname

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

Definition at line 233 of file sync.h.

◆ templock

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

Definition at line 232 of file sync.h.


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