B2BITS FIX Antenna C++ 2.33.0
Loading...
Searching...
No Matches
Public 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.
 
 ~Unlocker ()
 Destructor.
 

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

◆ Unlocker()

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

Constructor.

Acquires the given resource.

Parameters
lockResource monitor implementation

◆ ~Unlocker()

template<class T >
Utils::Unlocker< T >::~Unlocker ( )
inline

Destructor.

Releases the given resource.