#include <openmp_mutex.h>
Definition at line 62 of file openmp_mutex.h.
g2o::OpenMPMutex::OpenMPMutex |
( |
| ) |
|
|
inline |
g2o::OpenMPMutex::~OpenMPMutex |
( |
| ) |
|
|
inline |
void g2o::OpenMPMutex::lock |
( |
| ) |
|
|
inline |
Definition at line 71 of file openmp_mutex.h.
References _cnt.
71 { assert(++
_cnt == 1 &&
"Locking already locked mutex");}
void g2o::OpenMPMutex::unlock |
( |
| ) |
|
|
inline |
Definition at line 72 of file openmp_mutex.h.
References _cnt.
72 { assert(--
_cnt == 0 &&
"Trying to unlock a mutex which is not locked");}
char g2o::OpenMPMutex::_cnt |
|
protected |
The documentation for this class was generated from the following file: