isle/LEGO1/mxcriticalsection.h

21 lines
386 B
C
Raw Normal View History

2023-06-12 14:46:44 -04:00
#ifndef MXCRITICALSECTION_H
#define MXCRITICALSECTION_H
#include <windows.h>
2023-06-12 14:46:44 -04:00
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