Files
dusklight/include/dolphin/os/OSSemaphore.h
T
TakaRikka 7ef1810132 m_Do_main / f_ap_game / f_op_actor debug work and misc (#2744)
* m_Do_main / f_ap_game debug stuff

* revolution sdk compatibility

* f_op_actor debug work

* rename fopAcM_SetupActor to fopAcM_ct

* fix build

* fix jp/pal splits
2025-10-19 20:30:49 +03:00

30 lines
582 B
C

#ifndef _DOLPHIN_OSSEMAPHORE_H_
#define _DOLPHIN_OSSEMAPHORE_H_
#ifdef __REVOLUTION_SDK__
#include <revolution/os/OSSemaphore.h>
#else
#include <dolphin/os/OSThread.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OSSemaphore {
s32 count;
OSThreadQueue queue;
} OSSemaphore;
void OSInitSemaphore(OSSemaphore* sem, s32 count);
s32 OSWaitSemaphore(OSSemaphore* sem);
s32 OSTryWaitSemaphore(OSSemaphore* sem);
s32 OSSignalSemaphore(OSSemaphore* sem);
s32 OSGetSemaphoreCount(OSSemaphore* sem);
#ifdef __cplusplus
}
#endif
#endif
#endif // _DOLPHIN_OSSEMAPHORE_H_