LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
LogCabin::Core::MutexUnlock< Mutex > Class Template Reference

Release a mutex upon construction, reacquires it upon destruction. More...

#include <Mutex.h>

List of all members.

Public Member Functions

 MutexUnlock (std::unique_lock< Mutex > &guard)
 ~MutexUnlock ()

Private Attributes

std::unique_lock< Mutex > & guard

Detailed Description

template<typename Mutex>
class LogCabin::Core::MutexUnlock< Mutex >

Release a mutex upon construction, reacquires it upon destruction.

Template Parameters:
MutexType of mutex (either std::mutex or Core::Mutex).

Definition at line 95 of file Mutex.h.


Constructor & Destructor Documentation

template<typename Mutex>
LogCabin::Core::MutexUnlock< Mutex >::MutexUnlock ( std::unique_lock< Mutex > &  guard) [inline, explicit]

Definition at line 97 of file Mutex.h.

template<typename Mutex>
LogCabin::Core::MutexUnlock< Mutex >::~MutexUnlock ( ) [inline]

Definition at line 103 of file Mutex.h.


Member Data Documentation

template<typename Mutex>
std::unique_lock<Mutex>& LogCabin::Core::MutexUnlock< Mutex >::guard [private]

Definition at line 108 of file Mutex.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines