WUT  0.1
Wii U Toolchain
fastmutex.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "threadqueue.h"
4 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef struct OSFastMutex OSFastMutex;
18 
20 {
23 };
24 CHECK_OFFSET(OSFastMutexLink, 0x00, next);
25 CHECK_OFFSET(OSFastMutexLink, 0x04, prev);
26 CHECK_SIZE(OSFastMutexLink, 0x08);
27 
28 #define OS_FAST_MUTEX_TAG 0x664D7458u
29 
31 {
32  uint32_t tag;
33  const char *name;
34  UNKNOWN(4);
37  UNKNOWN(16);
38 };
39 CHECK_OFFSET(OSFastMutex, 0x00, tag);
40 CHECK_OFFSET(OSFastMutex, 0x04, name);
41 CHECK_OFFSET(OSFastMutex, 0x0c, queue);
42 CHECK_OFFSET(OSFastMutex, 0x14, link);
43 CHECK_SIZE(OSFastMutex, 0x2c);
44 
45 void
46 OSFastMutex_Init(OSFastMutex *mutex, const char *name);
47 
48 void
50 
51 void
53 
54 BOOL
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
void OSFastMutex_Init(OSFastMutex *mutex, const char *name)
uint32_t tag
Definition: fastmutex.h:32
BOOL OSFastMutex_TryLock(OSFastMutex *mutex)
void OSFastMutex_Unlock(OSFastMutex *mutex)
const char * name
Definition: fastmutex.h:33
OSThreadSimpleQueue queue
Definition: fastmutex.h:35
int BOOL
Definition: wut_types.h:4
void OSFastMutex_Lock(OSFastMutex *mutex)
OSFastMutexLink link
Definition: fastmutex.h:36