Public Member Functions | Private Attributes | List of all members
FIX::Locker Class Reference

Locks/Unlocks a mutex using RAII. More...

#include <Mutex.h>

Collaboration diagram for FIX::Locker:
Collaboration graph
[legend]

Public Member Functions

 Locker (Mutex &mutex)
 
 ~Locker ()
 

Private Attributes

Mutexm_mutex
 

Detailed Description

Locks/Unlocks a mutex using RAII.

Definition at line 112 of file Mutex.h.

Constructor & Destructor Documentation

◆ Locker()

FIX::Locker::Locker ( Mutex mutex)
inline

Definition at line 115 of file Mutex.h.

115  :
116  ReverseLocker( Mutex& mutex )
117  : m_mutex( mutex )
118  {
119  m_mutex.unlock();

References FIX::ReverseLocker::m_mutex, and FIX::Mutex::unlock().

◆ ~Locker()

FIX::Locker::~Locker ( )
inline

Definition at line 121 of file Mutex.h.

123  {
124  m_mutex.lock();

Member Data Documentation

◆ m_mutex

Mutex& FIX::Locker::m_mutex
private

Definition at line 126 of file Mutex.h.

Referenced by FIX::Mutex::unlock().


The documentation for this class was generated from the following file:
FIX::Mutex::lock
void lock()
Definition: Mutex.h:91
FIX::Mutex::unlock
void unlock()
Definition: Mutex.h:104
FIX::Locker::m_mutex
Mutex & m_mutex
Definition: Mutex.h:126

Generated on Wed Apr 29 2020 19:41:30 for QuickFIX by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2001