ACT-CV - Machine Vision for Cognitive Modeling
Public Member Functions | Public Attributes | List of all members
mhthreads::ScopedLock Struct Reference

acquire a lock at the begin of a scope and automatically release it More...

#include <Mutex.h>

Collaboration diagram for mhthreads::ScopedLock:
Collaboration graph

Public Member Functions

 ScopedLock (Mutex &mutex)
 
 ~ScopedLock ()
 

Public Attributes

Mutexm
 

Detailed Description

acquire a lock at the begin of a scope and automatically release it

eases exception handling and so on

Definition at line 56 of file Mutex.h.

Constructor & Destructor Documentation

mhthreads::ScopedLock::ScopedLock ( Mutex mutex)

Definition at line 58 of file Mutex.h.

References mhthreads::Mutex::Enter(), and m.

mhthreads::ScopedLock::~ScopedLock ( )

Definition at line 61 of file Mutex.h.

References mhthreads::Mutex::Leave(), and m.

Member Data Documentation

Mutex& mhthreads::ScopedLock::m

Definition at line 57 of file Mutex.h.

Referenced by ScopedLock(), and ~ScopedLock().


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


ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)