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

Does the opposite of the Locker to ensure mutex ends up in a locked state. More...

#include <Mutex.h>

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

Public Member Functions

 ReverseLocker (Mutex &mutex)
 
 ~ReverseLocker ()
 

Private Attributes

Mutexm_mutex
 

Detailed Description

Does the opposite of the Locker to ensure mutex ends up in a locked state.

Definition at line 113 of file Mutex.h.

Constructor & Destructor Documentation

◆ ReverseLocker()

FIX::ReverseLocker::ReverseLocker ( Mutex mutex)
inline

Definition at line 116 of file Mutex.h.

References FIX::Mutex::m_mutex.

117  : m_mutex( mutex )
118  {
119  m_mutex.unlock();
120  }
Mutex & m_mutex
Definition: Mutex.h:127
void unlock()
Definition: Mutex.h:70

◆ ~ReverseLocker()

FIX::ReverseLocker::~ReverseLocker ( )
inline

Definition at line 122 of file Mutex.h.

References FIX::Mutex::m_mutex.

123  {
124  m_mutex.lock();
125  }
Mutex & m_mutex
Definition: Mutex.h:127
void lock()
Definition: Mutex.h:57

Member Data Documentation

◆ m_mutex

Mutex& FIX::ReverseLocker::m_mutex
private

Definition at line 127 of file Mutex.h.


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

Generated on Thu Sep 5 2019 11:07:58 for QuickFIX by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2001