Argus Camera Sample
Argus Camera Sample
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes
ArgusSamples::ScopedMutex Class Reference

An RAII-style class for acquiring a Mutex. More...

#include <Mutex.h>

List of all members.

Public Member Functions

 ScopedMutex (Mutex &mutex)
 ~ScopedMutex ()
bool expectLocked () const

Private Member Functions

 ScopedMutex ()
 Hide default/copy constructor and assignment operator.
 ScopedMutex (ScopedMutex &other)
ScopedMutexoperator= (const ScopedMutex &)

Private Attributes

Mutexm_mutex
bool m_isLocked

Detailed Description

An RAII-style class for acquiring a Mutex.

The mutex is acquired in the constructor and released in the destructor. This class is NOT to be subclassed.

Definition at line 98 of file Mutex.h.


Constructor & Destructor Documentation

ArgusSamples::ScopedMutex::ScopedMutex ( Mutex mutex)
inlineexplicit

Definition at line 101 of file Mutex.h.

ArgusSamples::ScopedMutex::~ScopedMutex ( )
inline

Definition at line 108 of file Mutex.h.

ArgusSamples::ScopedMutex::ScopedMutex ( )
private

Hide default/copy constructor and assignment operator.

ArgusSamples::ScopedMutex::ScopedMutex ( ScopedMutex other)
private

Member Function Documentation

bool ArgusSamples::ScopedMutex::expectLocked ( ) const
inline

Definition at line 114 of file Mutex.h.

ScopedMutex& ArgusSamples::ScopedMutex::operator= ( const ScopedMutex )
private

Member Data Documentation

bool ArgusSamples::ScopedMutex::m_isLocked
private

Definition at line 123 of file Mutex.h.

Mutex* ArgusSamples::ScopedMutex::m_mutex
private

Definition at line 122 of file Mutex.h.


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