|
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 | ( | ) |
| tarch::multicore::RecursiveSemaphore::~RecursiveSemaphore | ( | ) |
|
private |
|
private |
|
private |
You may not copy a semaphore.
Definition at line 48 of file RecursiveSemaphore.h.
|
private |
|
friend |
Definition at line 32 of file RecursiveSemaphore.h.
|
private |
Definition at line 34 of file RecursiveSemaphore.h.