mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Reorganize sources and files (#414)
* Reorganize sources * Refactor * Remove relative paths * Renames * Fix gitignore * Remove stuff * Try fixing format script * Fix format * Fix format * Fix naming script * Test format * Fix format
This commit is contained in:

committed by
GitHub

parent
6a85e62406
commit
c47206617d
25
LEGO1/omni/include/mxsemaphore.h
Normal file
25
LEGO1/omni/include/mxsemaphore.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef MX_SEMAPHORE_H
|
||||
#define MX_SEMAPHORE_H
|
||||
|
||||
#include "mxtypes.h"
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
// SIZE 0x08
|
||||
class MxSemaphore {
|
||||
public:
|
||||
MxSemaphore();
|
||||
|
||||
// Inlined only, no offset
|
||||
~MxSemaphore() { CloseHandle(m_hSemaphore); }
|
||||
|
||||
virtual MxResult Init(MxU32 p_initialCount, MxU32 p_maxCount);
|
||||
|
||||
void Wait(MxU32 p_timeoutMS);
|
||||
void Release(MxU32 p_releaseCount);
|
||||
|
||||
private:
|
||||
HANDLE m_hSemaphore; // 0x04
|
||||
};
|
||||
|
||||
#endif // MX_SEMAPHORE_H
|
Reference in New Issue
Block a user