Files
tp/include/dolphin/os/OSMutex.h
T
TakaRikka 1114b13da8 clean up dolphin files / work on some rels (#212)
* d_a_alldie / d_a_tboxSw / d_a_tag_gstart / d_a_tag_hstop

* dolphin OS work / cleanup

* dolphin GX work / cleanup

* finish changing dolphin files to C

* more files into C

* match rest of MSL_C math functions

* more dolphin files converted to C

* remove asm

* d_bg_w work

* remove asm

* d_a_alink work / kytag14
2022-11-11 11:09:48 -07:00

34 lines
760 B
C

#ifndef OSMUTEX_H
#define OSMUTEX_H
#include "dolphin/os/OSThread.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OSMutex {
/* 0x00 */ OSThreadQueue queue;
/* 0x08 */ OSThread* thread;
/* 0x0C */ s32 count;
/* 0x10 */ OSMutexLink link;
} OSMutex; // Size: 0x18
void OSInitMutex(OSMutex* mutex);
void OSLockMutex(OSMutex* mutex);
void OSUnlockMutex(OSMutex* mutex);
void __OSUnlockAllMutex(OSThread* thread);
s32 OSTryLockMutex(OSMutex* mutex);
void OSInitCond(OSCond* cond);
void OSWaitCond(OSCond* cond, OSMutex* mutex);
void OSSignalCond(OSCond* cond);
s32 __OSCheckMutex(OSThread* thread);
BOOL __OSCheckDeadLock(OSThread* thread);
BOOL __OSCheckMutexes(OSThread* thread);
#ifdef __cplusplus
};
#endif
#endif /* OSMUTEX_H */