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);
void OSResetEvent(OSEvent *event)
Resets the event object.
A manual event will only reset when OSResetEvent is called.
void OSSignalEvent(OSEvent *event)
Signals the event.
void OSInitEvent(OSEvent *event, BOOL value, OSEventMode mode)
Initialise an event object with value and mode.
OSEventMode mode
The mode of the event object, set by OSInitEvent.
void OSSignalEventAll(OSEvent *event)
Signals all threads waiting on an event.
void OSWaitEvent(OSEvent *event)
Wait until an event is signalled.
const char * name
Name set by OSInitEventEx.
BOOL OSWaitEventWithTimeout(OSEvent *event, OSTime timeout)
Wait until an event is signalled or a timeout has occurred.
OSThreadQueue queue
The threads currently waiting on this event object with OSWaitEvent.
void OSInitEventEx(OSEvent *event, BOOL value, OSEventMode mode, char *name)
Initialise an event object with value, mode and name.
An auto event will reset everytime a thread is woken.
uint32_t tag
Should always be set to the value OS_EVENT_TAG.
BOOL value
The current value of the event object.