![]() |
Iridescence 1.00
Embedded Graphic Framework
|
DsSemaphore is a class that implements a binary semaphore. More...
#include <ds_os.h>
Public Member Functions | |
| bool | take (uint32_t wait_ms) |
| Take the semaphore. | |
| void | give (void) |
| Gives the semaphore. | |
| void | giveFromIsr (int32_t *woken) |
| Gives the semaphore. Can be called from an interrupt context. | |
DsSemaphore is a class that implements a binary semaphore.
| void DsBinarySemaphore::giveFromIsr | ( | int32_t * | woken | ) |
Gives the semaphore. Can be called from an interrupt context.
| woken | Pointer to a value which is changed to true if a context switch is required as a result of giving the semaphore. |
| bool DsBinarySemaphore::take | ( | uint32_t | wait_ms | ) |
Take the semaphore.
| wait_ms | Timeout in ms. If set to -1, the timeout is disabled |