Iridescence 1.00
Embedded Graphic Framework
Loading...
Searching...
No Matches
DsBinarySemaphore Class Reference

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.
 

Detailed Description

DsSemaphore is a class that implements a binary semaphore.

Member Function Documentation

◆ giveFromIsr()

void DsBinarySemaphore::giveFromIsr ( int32_t *  woken)

Gives the semaphore. Can be called from an interrupt context.

Parameters
wokenPointer to a value which is changed to true if a context switch is required as a result of giving the semaphore.

◆ take()

bool DsBinarySemaphore::take ( uint32_t  wait_ms)

Take the semaphore.

Parameters
wait_msTimeout in ms. If set to -1, the timeout is disabled

The documentation for this class was generated from the following file: