Introduce clang-format (#240)

This commit is contained in:
Christian Semmler
2023-10-24 19:38:27 -04:00
committed by GitHub
parent e928fc9425
commit b449da1fa3
408 changed files with 12434 additions and 12813 deletions

View File

@@ -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