wut  v1.7.0
Wii U Toolchain
fastcondition.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "threadqueue.h"
4 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 typedef struct OSFastCondition OSFastCondition;
19 typedef struct OSFastMutex OSFastMutex;
20 
21 #define OS_FAST_CONDITION_TAG 0x664E6456u
22 
24 {
25  uint32_t tag;
26  const char *name;
27  WUT_UNKNOWN_BYTES(4);
29 };
30 WUT_CHECK_OFFSET(OSFastCondition, 0x00, tag);
31 WUT_CHECK_OFFSET(OSFastCondition, 0x04, name);
32 WUT_CHECK_OFFSET(OSFastCondition, 0x0c, queue);
33 WUT_CHECK_SIZE(OSFastCondition, 0x1c);
34 
35 void
37  const char *name);
38 
39 void
41  OSFastMutex *mutex);
42 
43 void
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
OSThreadQueue queue
Definition: fastcondition.h:27
const char * name
Definition: fastcondition.h:26
void OSFastCond_Signal(OSFastCondition *condition)
void OSFastCond_Wait(OSFastCondition *condition, OSFastMutex *mutex)
void OSFastCond_Init(OSFastCondition *condition, const char *name)