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