1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| #pragma once
|
| #if IL2CPP_THREADS_PTHREAD && !IL2CPP_TINY_WITHOUT_DEBUGGER
|
| #include "PosixWaitObject.h"
| #include "os/ErrorCodes.h"
| #include "os/WaitStatus.h"
|
| #include <stdint.h>
| #include <semaphore.h>
|
| namespace il2cpp
| {
| namespace os
| {
| class SemaphoreImpl : public posix::PosixWaitObject
| {
| public:
| SemaphoreImpl(int32_t initialValue, int32_t maximumValue);
|
| bool Post(int32_t releaseCount, int32_t* previousCount);
|
| protected:
| uint32_t m_MaximumValue;
| };
| }
| }
|
| #endif
|
|