NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
OSMutex.h
1#ifndef RVL_SDK_OS_MUTEX_H
2#define RVL_SDK_OS_MUTEX_H
3#include <revolution/OS/OSThread.h>
4#include <types.h>
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9typedef struct OSMutex {
10 OSThreadQueue queue; // at 0x0
11 OSThread* thread; // at 0x8
12 s32 lock; // at 0xC
13 struct OSMutex* next; // at 0x10
14 struct OSMutex* prev; // at 0x14
15} OSMutex;
16
17void OSInitMutex(OSMutex* mutex);
18void OSLockMutex(OSMutex* mutex);
19void OSUnlockMutex(OSMutex* mutex);
20void __OSUnlockAllMutex(OSThread* thread);
21BOOL OSTryLockMutex(OSMutex* mutex);
22
23#ifdef __cplusplus
24}
25#endif
26#endif