31 #define OS_EVENT_TAG 0x65566E54u
52 WUT_CHECK_OFFSET(
OSEvent, 0x0, tag);
53 WUT_CHECK_OFFSET(
OSEvent, 0x4, name);
54 WUT_CHECK_OFFSET(
OSEvent, 0xc, value);
55 WUT_CHECK_OFFSET(
OSEvent, 0x10, queue);
56 WUT_CHECK_OFFSET(
OSEvent, 0x20, mode);
OSEventMode mode
The mode of the event object, set by OSInitEvent.
uint32_t tag
Should always be set to the value OS_EVENT_TAG.
BOOL value
The current value of the event object.
OSThreadQueue queue
The threads currently waiting on this event object with OSWaitEvent.
const char * name
Name set by OSInitEventEx.
void OSInitEventEx(OSEvent *event, BOOL value, OSEventMode mode, char *name)
Initialise an event object with value, mode and name.
void OSSignalEvent(OSEvent *event)
Signals the event.
void OSResetEvent(OSEvent *event)
Resets the event object.
void OSWaitEvent(OSEvent *event)
Wait until an event is signalled.
void OSInitEvent(OSEvent *event, BOOL value, OSEventMode mode)
Initialise an event object with value and mode.
void OSSignalEventAll(OSEvent *event)
Signals all threads waiting on an event.
BOOL OSWaitEventWithTimeout(OSEvent *event, OSTime timeout)
Wait until an event is signalled or a timeout has occurred.
@ OS_EVENT_MODE_MANUAL
A manual event will only reset when OSResetEvent is called.
@ OS_EVENT_MODE_AUTO
An auto event will reset everytime a thread is woken.