Public Member Functions | Private Attributes
FIX::Locker Class Reference

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

#include <Mutex.h>

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

List of all members.

Public Member Functions

 Locker (Mutex &mutex)
 ~Locker ()

Private Attributes

Mutexm_mutex

Detailed Description

Locks/Unlocks a mutex using RAII.

Definition at line 95 of file Mutex.h.


Constructor & Destructor Documentation

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

Definition at line 98 of file Mutex.h.

References FIX::Mutex::lock(), and m_mutex.

  : m_mutex( mutex )
  {
    m_mutex.lock();
  }
FIX::Locker::~Locker ( ) [inline]

Definition at line 104 of file Mutex.h.

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

  {
    m_mutex.unlock();
  }

Member Data Documentation

Definition at line 109 of file Mutex.h.

Referenced by Locker(), and ~Locker().


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

Generated on Mon Jun 23 2014 23:49:39 for QuickFIX by doxygen 1.7.6.1 written by Dimitri van Heesch, © 1997-2001