Public Member Functions

a5::Lock Class Reference

RAII method of locking mutexes. More...

#include <Thread.hpp>

List of all members.

Public Member Functions

 Lock ()
 Creates and locks an anonymous mutex.
 Lock (Mutex &mutex_)
 Locks the mutex.
 ~Lock ()
 Unlocks the mutex.

Detailed Description

RAII method of locking mutexes.


Constructor & Destructor Documentation

a5::Lock::Lock (  ) 

Creates and locks an anonymous mutex.

a5::Lock::Lock ( Mutex mutex_  ) 

Locks the mutex.

a5::Lock::~Lock (  ) 

Unlocks the mutex.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines