Files
isle/LEGO1/mxcriticalsection.h
2023-11-28 14:26:39 +01:00

21 lines
392 B
C++

#ifndef MXCRITICALSECTION_H
#define MXCRITICALSECTION_H
#include <windows.h>
// SIZE 0x1c
class MxCriticalSection {
public:
__declspec(dllexport) MxCriticalSection();
__declspec(dllexport) ~MxCriticalSection();
__declspec(dllexport) static void SetDoMutex();
void Enter();
void Leave();
private:
CRITICAL_SECTION m_criticalSection;
HANDLE m_mutex;
};
#endif // MXCRITICALSECTION_H