Public Member Functions | Private Attributes
alvar::Lock Class Reference

Lock for simplifying mutex handling. More...

#include <Lock.h>

Inheritance diagram for alvar::Lock:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Lock (Mutex *mutex)
 Constructor.
 ~Lock ()
 Destructor.

Private Attributes

MutexmMutex

Detailed Description

Lock for simplifying mutex handling.

Lock class for simplifying mutex handling. Simply pass a mutex to the constructor and the mutex will be locked. When the lock is destroyed, the mutex will be unlocked.

Definition at line 46 of file Lock.h.


Constructor & Destructor Documentation

alvar::Lock::Lock ( Mutex mutex) [inline]

Constructor.

Parameters:
mutexThe mutex to lock.

Definition at line 54 of file Lock.h.

alvar::Lock::~Lock ( ) [inline]

Destructor.

Definition at line 63 of file Lock.h.


Member Data Documentation

Definition at line 69 of file Lock.h.


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


ar_track_alvar
Author(s): Scott Niekum
autogenerated on Sat Dec 28 2013 16:46:16