wut  1.0.0-beta9
Wii U Toolchain
Data Structures | Macros | Typedefs | Enumerations | Functions
event.h File Reference
#include <wut.h>
#include "thread.h"
#include "threadqueue.h"

Go to the source code of this file.

Data Structures

struct  OSEvent
 

Macros

#define OS_EVENT_TAG   0x65566E54u
 

Typedefs

typedef struct OSEvent OSEvent
 
typedef enum OSEventMode OSEventMode
 

Enumerations

enum  OSEventMode {
  OS_EVENT_MODE_MANUAL = 0,
  OS_EVENT_MODE_AUTO = 1
}
 

Functions

void OSInitEvent (OSEvent *event, BOOL value, OSEventMode mode)
 Initialise an event object with value and mode. More...
 
void OSInitEventEx (OSEvent *event, BOOL value, OSEventMode mode, char *name)
 Initialise an event object with value, mode and name. More...
 
void OSSignalEvent (OSEvent *event)
 Signals the event. More...
 
void OSSignalEventAll (OSEvent *event)
 Signals all threads waiting on an event. More...
 
void OSWaitEvent (OSEvent *event)
 Wait until an event is signalled. More...
 
void OSResetEvent (OSEvent *event)
 Resets the event object. More...
 
BOOL OSWaitEventWithTimeout (OSEvent *event, OSTime timeout)
 Wait until an event is signalled or a timeout has occurred. More...