Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::base::GenericUnlockGuard< MutexT > Class Template Reference

An UnlockGuard is the reverse of a LockGuard; it unlocks a mutex when created and locks it when destroyed. More...

#include "lockguards.h"

Public Member Functions

 GenericUnlockGuard (MutexT *m)
 The passed pointer must be non-NULL. More...
 
 ~GenericUnlockGuard ()
 

Detailed Description

template<class MutexT>
class ion::base::GenericUnlockGuard< MutexT >

An UnlockGuard is the reverse of a LockGuard; it unlocks a mutex when created and locks it when destroyed.

Note that the destructor of an UnlockGuard may block waiting to acquire the mutex lock.

Definition at line 121 of file lockguards.h.

Constructor & Destructor Documentation

template<class MutexT >
ion::base::GenericUnlockGuard< MutexT >::GenericUnlockGuard ( MutexT *  m)
inlineexplicit

The passed pointer must be non-NULL.

Definition at line 124 of file lockguards.h.

References mutex_.

template<class MutexT >
ion::base::GenericUnlockGuard< MutexT >::~GenericUnlockGuard ( )
inline

Definition at line 128 of file lockguards.h.

References mutex_.


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