ONPOSIX  2.0
 All Classes Namespaces Files Functions Variables Enumerator Friends Macros Pages
MutexLocker Class Reference

Class to simplify locking and unlocking of PosixMutex. More...

#include <PosixMutex.hpp>

Public Member Functions

 MutexLocker (PosixMutex &mutex)
 ~MutexLocker ()

Private Attributes

PosixMutexmutex_

Detailed Description

Class to simplify locking and unlocking of PosixMutex.

This is a convenience class that simplifies locking and unlocking PosixMutex(es) making use of the RAII idiom: the lock is acquired in the constructor and released in the destructor.

Definition at line 72 of file PosixMutex.hpp.

Constructor & Destructor Documentation

MutexLocker ( PosixMutex mutex)
inline

Definition at line 78 of file PosixMutex.hpp.

: mutex_(mutex) {
}

Here is the call graph for this function:

~MutexLocker ( )
inline

Definition at line 82 of file PosixMutex.hpp.

{
}

Here is the call graph for this function:

Member Data Documentation

PosixMutex& mutex_
private

Definition at line 74 of file PosixMutex.hpp.


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