1
0
Fork 0
mirror of https://github.com/isledecomp/isle.git synced 2024-12-22 22:12:27 -05:00
isle/LEGO1/omni/include/mxsemaphore.h

27 lines
455 B
C
Raw Normal View History

#ifndef MXSEMAPHORE_H
#define MXSEMAPHORE_H
#include "mxtypes.h"
2023-10-24 19:38:27 -04:00
#include <windows.h>
// VTABLE: LEGO1 0x100dccf0
// SIZE 0x08
2023-10-24 19:38:27 -04:00
class MxSemaphore {
public:
2023-10-24 19:38:27 -04:00
MxSemaphore();
// FUNCTION: LEGO1 0x100c87e0
2023-10-24 19:38:27 -04:00
~MxSemaphore() { CloseHandle(m_hSemaphore); }
2023-10-24 19:38:27 -04:00
virtual MxResult Init(MxU32 p_initialCount, MxU32 p_maxCount);
2023-10-24 19:38:27 -04:00
void Wait(MxU32 p_timeoutMS);
void Release(MxU32 p_releaseCount);
private:
HANDLE m_hSemaphore; // 0x04
};
#endif // MXSEMAPHORE_H