Signal and wait on application-created events.
More...
|
|
typedef struct _DPS_Event | DPS_Event |
| | Opaque type for an event.
|
| |
Signal and wait on application-created events.
◆ DPS_CreateEvent()
Create and initialize an event.
- Returns
- The created event, or NULL if creation failed
◆ DPS_DestroyEvent()
Destroy an event and free resources.
- Parameters
-
| event | The event to destroy |
◆ DPS_GetEventData()
| void* DPS_GetEventData |
( |
const DPS_Event * |
event | ) |
|
Get the event application data.
- Parameters
-
| event | The event to get the application data from |
- Returns
- The application data
◆ DPS_SetEventData()
| void DPS_SetEventData |
( |
DPS_Event * |
event, |
|
|
void * |
data |
|
) |
| |
Set the event application data.
- Parameters
-
| event | The event to set an application data on |
| data | The data to set |
◆ DPS_SignalEvent()
Signal an event.
- Parameters
-
| event | Event to signal |
| status | A status code to pass to the event waiter |
◆ DPS_TimedWaitForEvent()
Wait for an event to be signalled with a timeout.
- Parameters
-
| event | Event to wait for |
| timeout | Timeout in milliseconds |
- Returns
- The status passed to DPS_SignalEvent() or DPS_ERR_TIMEOUT if the call timed out.
◆ DPS_WaitForEvent()
Wait for an event to be signalled.
- Parameters
-
- Returns
- The status passed to DPS_SignalEvent()