mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-06 09:55:11 -04:00
4df8ccc871
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN}
* Update configure.py and project.py for new libs structure
* Refactor `#include <dolphin/x.h>` -> `<x.h>`
* Remove `__REVOLUTION_SDK__` forwards from dolphin
* Fix dolphin/ references in revolution
* Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__`
* Always build TRK against dolphin headers
* Resolve revolution SDK header resolution issues
34 lines
638 B
C
34 lines
638 B
C
#ifndef _REVOLUTION_OSMUTEX_H_
|
|
#define _REVOLUTION_OSMUTEX_H_
|
|
|
|
#include <revolution/os/OSThread.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct OSMutex {
|
|
/* 0x00 */ OSThreadQueue queue;
|
|
/* 0x08 */ OSThread* thread;
|
|
/* 0x0C */ s32 count;
|
|
/* 0x10 */ OSMutexLink link;
|
|
};
|
|
|
|
typedef struct OSCond {
|
|
OSThreadQueue queue;
|
|
} OSCond;
|
|
|
|
void OSInitMutex(OSMutex* mutex);
|
|
void OSLockMutex(OSMutex* mutex);
|
|
void OSUnlockMutex(OSMutex* mutex);
|
|
BOOL OSTryLockMutex(OSMutex* mutex);
|
|
void OSInitCond(OSCond* cond);
|
|
void OSWaitCond(OSCond* cond, OSMutex* mutex);
|
|
void OSSignalCond(OSCond* cond);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|