mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-24 23:01:23 -04:00
7ef1810132
* 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
26 lines
516 B
C
26 lines
516 B
C
#ifndef _REVOLUTION_OSSEMAPHORE_H_
|
|
#define _REVOLUTION_OSSEMAPHORE_H_
|
|
|
|
#include <revolution/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 // _REVOLUTION_OSSEMAPHORE_H_
|