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

◆ Mutex()

alvar::Mutex::Mutex ( )

Constructor.

Definition at line 30 of file Mutex.cpp.

◆ ~Mutex()

alvar::Mutex::~Mutex ( )

Destructor.

Definition at line 35 of file Mutex.cpp.

Member Function Documentation

◆ lock()

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.

◆ unlock()

void alvar::Mutex::unlock ( )

Unlocks the mutex.

Definition at line 45 of file Mutex.cpp.

Member Data Documentation

◆ d

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 Mon Feb 28 2022 21:43:23