![]() |
Peano
|
Recursive Semaphore. More...
#include <RecursiveSemaphore.h>
Public Types | |
using | Lock = tarch::multicore::RecursiveLock |
Public Member Functions | |
RecursiveSemaphore () | |
~RecursiveSemaphore () | |
Private Member Functions | |
void | enterCriticalSection () |
void | leaveCriticalSection () |
bool | tryEnterCriticalSection () |
RecursiveSemaphore (const RecursiveSemaphore &) | |
You may not copy a semaphore. | |
RecursiveSemaphore & | operator= (const RecursiveSemaphore &) |
You may not copy a semaphore. | |
Private Attributes | |
std::recursive_mutex | _mutex |
Friends | |
class | tarch::multicore::RecursiveLock |
Recursive Semaphore.
A recursive semaphore is a boolean semphore that one thread (the first one) can lock an arbitrary number of times.
Definition at line 30 of file RecursiveSemaphore.h.
Definition at line 54 of file RecursiveSemaphore.h.
|
private |
You may not copy a semaphore.
Definition at line 43 of file RecursiveSemaphore.h.
tarch::multicore::RecursiveSemaphore::RecursiveSemaphore | ( | ) |
Definition at line 5 of file RecursiveSemaphore.cpp.
tarch::multicore::RecursiveSemaphore::~RecursiveSemaphore | ( | ) |
Definition at line 9 of file RecursiveSemaphore.cpp.
|
private |
Definition at line 13 of file RecursiveSemaphore.cpp.
|
private |
Definition at line 17 of file RecursiveSemaphore.cpp.
|
private |
You may not copy a semaphore.
Definition at line 48 of file RecursiveSemaphore.h.
|
private |
Definition at line 21 of file RecursiveSemaphore.cpp.
|
friend |
Definition at line 32 of file RecursiveSemaphore.h.
|
private |
Definition at line 34 of file RecursiveSemaphore.h.