Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
OSMutex.h
Go to the documentation of this file.
1#ifndef OSMUTEX_H
2#define OSMUTEX_H
3
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef struct OSMutex {
11 /* 0x00 */ OSThreadQueue queue;
12 /* 0x08 */ OSThread* thread;
13 /* 0x0C */ s32 count;
14 /* 0x10 */ OSMutexLink link;
15} OSMutex; // Size: 0x18
16
20
21void OSInitMutex(OSMutex* mutex);
22void OSLockMutex(OSMutex* mutex);
23void OSUnlockMutex(OSMutex* mutex);
26void OSWaitCond(OSCond* cond, OSMutex* mutex);
28
29void __OSUnlockAllMutex(OSThread* thread);
33
34#ifdef __cplusplus
35};
36#endif
37
38#endif /* OSMUTEX_H */
void OSInitMutex(OSMutex *mutex)
Definition OSMutex.c:55
void __OSUnlockAllMutex(OSThread *thread)
Definition OSMutex.c:105
void OSInitCond(OSCond *cond)
Definition OSMutex.c:138
void OSSignalCond(OSCond *cond)
Definition OSMutex.c:168
BOOL __OSCheckDeadLock(OSThread *thread)
Definition OSMutex.c:219
BOOL OSTryLockMutex(OSMutex *mutex)
Definition OSMutex.c:118
void OSWaitCond(OSCond *cond, OSMutex *mutex)
Definition OSMutex.c:141
void OSUnlockMutex(OSMutex *mutex)
Definition OSMutex.c:88
void OSLockMutex(OSMutex *mutex)
Definition OSMutex.c:62
BOOL __OSCheckMutex(OSMutex *thread)
Definition OSMutex.c:183
BOOL __OSCheckMutexes(OSThread *thread)
Definition OSMutex.c:232
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition OSMutex.h:17
OSThreadQueue queue
Definition OSMutex.h:18
Definition OSMutex.h:10
OSThread * thread
Definition OSMutex.h:12
OSMutexLink link
Definition OSMutex.h:14
OSThreadQueue queue
Definition OSMutex.h:11
s32 count
Definition OSMutex.h:13
Definition OSThread.h:41
Definition OSThread.h:56
int BOOL
Definition types.h:27
signed long s32
Definition types.h:6