Public Member Functions | Private Attributes | List of all members
alvar::Mutex Class Reference

Mutex for synchronizing multiple threads. More...

#include <Mutex.h>

Public Member Functions

void lock ()
 Locks the mutex. More...
 
 Mutex ()
 Constructor. More...
 
void unlock ()
 Unlocks the mutex. More...
 
 ~Mutex ()
 Destructor. More...
 

Private Attributes

MutexPrivated
 

Detailed Description

Mutex for synchronizing multiple threads.

Mutex class for synchronizing multiple threads.

Definition at line 44 of file Mutex.h.

Constructor & Destructor Documentation

alvar::Mutex::Mutex ( )

Constructor.

Definition at line 30 of file Mutex.cpp.

alvar::Mutex::~Mutex ( )

Destructor.

Definition at line 35 of file Mutex.cpp.

Member Function Documentation

void alvar::Mutex::lock ( )

Locks the mutex.

If the mutex is already locked by another thread, this method will block until the other thread unlocks the mutex.

Definition at line 40 of file Mutex.cpp.

void alvar::Mutex::unlock ( )

Unlocks the mutex.

Definition at line 45 of file Mutex.cpp.

Member Data Documentation

MutexPrivate* alvar::Mutex::d
private

Definition at line 71 of file Mutex.h.


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


ar_track_alvar
Author(s): Scott Niekum
autogenerated on Thu Jun 6 2019 19:27:24