mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Introduce clang-format (#240)
This commit is contained in:

committed by
GitHub

parent
e928fc9425
commit
b449da1fa3
@@ -2,26 +2,23 @@
|
||||
#define MX_SEMAPHORE_H
|
||||
|
||||
#include "mxtypes.h"
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
class MxSemaphore
|
||||
{
|
||||
class MxSemaphore {
|
||||
public:
|
||||
MxSemaphore();
|
||||
MxSemaphore();
|
||||
|
||||
// Inlined only, no offset
|
||||
~MxSemaphore()
|
||||
{
|
||||
CloseHandle(m_hSemaphore);
|
||||
}
|
||||
// Inlined only, no offset
|
||||
~MxSemaphore() { CloseHandle(m_hSemaphore); }
|
||||
|
||||
virtual MxResult Init(MxU32 p_initialCount, MxU32 p_maxCount);
|
||||
virtual MxResult Init(MxU32 p_initialCount, MxU32 p_maxCount);
|
||||
|
||||
void Wait(MxU32 p_timeoutMS);
|
||||
void Release(MxU32 p_releaseCount);
|
||||
void Wait(MxU32 p_timeoutMS);
|
||||
void Release(MxU32 p_releaseCount);
|
||||
|
||||
private:
|
||||
HANDLE m_hSemaphore;
|
||||
HANDLE m_hSemaphore;
|
||||
};
|
||||
|
||||
#endif // MX_SEMAPHORE_H
|
Reference in New Issue
Block a user