B2BITS FIX Antenna HFT  1.0.13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
Utils::Unlocker< T > Class Template Reference

Used to temporary unlock mutex Unlocker<Mutex> unlocker (lock_); // guard constructor releases m_lock. More...

#include <B2BITS_Guard.h>

Public Member Functions

 Unlocker (T &lock)
 Constructor. More...
 
 ~Unlocker ()
 Destructor. More...
 

Protected Member Functions

Unlockeroperator= (const Unlocker &)
 Assignment operator. More...
 
 Unlocker (const Unlocker &)
 Copy constructor. More...
 

Detailed Description

template<class T>
class Utils::Unlocker< T >

Used to temporary unlock mutex Unlocker<Mutex> unlocker (lock_); // guard constructor releases m_lock.

Constructor & Destructor Documentation

template<class T >
Utils::Unlocker< T >::Unlocker ( T &  lock)
inline

Constructor.

Acquires the given resource.

Parameters
lockResource monitor implementation
template<class T >
Utils::Unlocker< T >::~Unlocker ( )
inline

Destructor.

Releases the given resource.

template<class T >
Utils::Unlocker< T >::Unlocker ( const Unlocker< T > &  )
protected

Copy constructor.

Member Function Documentation

template<class T >
Unlocker& Utils::Unlocker< T >::operator= ( const Unlocker< T > &  )
protected

Assignment operator.