mirror of
https://github.com/zeldaret/tp
synced 2026-05-28 08:25:48 -04:00
2453c0e333
* move dolsdk2004 over * cleanup some temp work * finish and cleanup gf * b_bh done * d_a_e_mb done
26 lines
504 B
C
26 lines
504 B
C
#ifndef _DOLPHIN_OSSEMAPHORE_H_
|
|
#define _DOLPHIN_OSSEMAPHORE_H_
|
|
|
|
#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 // _DOLPHIN_OSSEMAPHORE_H_
|