Simple semaphore class.
More...
#include <erpc_threading.h>
|
static const uint32_t | kWaitForever |
| Variable for semaphore to wait forever.
|
|
Semaphore::Semaphore |
( |
int |
count = 0 | ) |
|
This function get semaphore.
- Parameters
-
[in] | timeoutUsecs | Time how long can wait for getting semaphore in [us]. |
- Return values
-
true | When semaphore got successfully. |
false | When mutex didn't get. |
int Semaphore::getCount |
( |
void |
| ) |
const |
This function returns semaphore count number.
- Returns
- Semaphore count number.
The documentation for this class was generated from the following files: