isle/LEGO1/mxcriticalsection.h
Joshua Peisach cc47df0b62
Revert "Define WIN32_LEAN_AND_MEAN when importing windows.h"
This reverts commit 33048db81a.

This screws up the build. The context shouldn't change that much anyways
2023-09-08 17:26:47 -04:00

21 lines
386 B
C++

#ifndef MXCRITICALSECTION_H
#define MXCRITICALSECTION_H
#include <windows.h>
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