mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 09:38:14 -05:00
20 lines
386 B
C++
20 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
|