isle-portable/LEGO1/mxcriticalsection.h

21 lines
428 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
2023-11-28 08:26:39 -05:00
// SIZE 0x1c
2023-10-24 19:38:27 -04:00
class MxCriticalSection {
2023-06-12 14:46:44 -04:00
public:
2023-10-24 19:38:27 -04:00
__declspec(dllexport) MxCriticalSection();
__declspec(dllexport) ~MxCriticalSection();
__declspec(dllexport) static void SetDoMutex();
void Enter();
void Leave();
2023-06-12 14:46:44 -04:00
private:
CRITICAL_SECTION m_criticalSection; // 0x00
HANDLE m_mutex; // 0x18
2023-06-12 14:46:44 -04:00
};
#endif // MXCRITICALSECTION_H