mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
lego1: add MxCriticalSection implementation
This commit is contained in:
@@ -1,12 +1,20 @@
|
||||
#ifndef MXCRITICALSECTION_H
|
||||
#define MXCRITICALSECTION_H
|
||||
|
||||
class MxCriticalSection
|
||||
{
|
||||
public:
|
||||
__declspec(dllexport) MxCriticalSection();
|
||||
__declspec(dllexport) ~MxCriticalSection();
|
||||
__declspec(dllexport) static void SetDoMutex();
|
||||
};
|
||||
|
||||
#endif // MXCRITICALSECTION_H
|
||||
#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
|
||||
|
Reference in New Issue
Block a user