blob: 94d21f02c7e0f3147dddb9c26cba0c4dc312c414 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef RVL_SDK_OS_MUTEX_H
#define RVL_SDK_OS_MUTEX_H
#include "common.h"
#include "rvl/OS/OSThread.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OSMutex {
OSThreadQueue queue; // at 0x0
OSThread *thread; // at 0x8
s32 lock; // at 0xC
struct OSMutex *next; // at 0x10
struct OSMutex *prev; // at 0x14
} OSMutex;
void OSInitMutex(OSMutex *mutex);
void OSLockMutex(OSMutex *mutex);
void OSUnlockMutex(OSMutex *mutex);
void __OSUnlockAllMutex(OSThread *thread);
BOOL OSTryLockMutex(OSMutex *mutex);
#ifdef __cplusplus
}
#endif
#endif
|