summaryrefslogtreecommitdiff
path: root/include/SDK/OS/OSSemaphore.h
blob: 46e7e035913daaf67ed3c3227a698aa44cc573a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef POKEREVO_OSSEMAPHORE_H
#define POKEREVO_OSSEMAPHORE_H

#ifdef __cplusplus
extern "C" {
#endif

typedef struct OSSemaphore
{
    u8 unk0[0x10];
} OSSemaphore;

s32 OSSignalSemaphore(OSSemaphore* sem);
void OSInitSemaphore(OSSemaphore* sem, s32 count);
s32 OSWaitSemaphore(OSSemaphore* sem);

#ifdef __cplusplus
}
#endif

#endif //POKEREVO_OSSEMAPHORE_H