mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-12-18 11:52:23 -05:00
76435d803f
* Style refactor omni/system components * Fix * Fix
22 lines
364 B
C++
22 lines
364 B
C++
#ifndef MXCRITICALSECTION_H
|
|
#define MXCRITICALSECTION_H
|
|
|
|
#include <windows.h>
|
|
|
|
// SIZE 0x1c
|
|
class MxCriticalSection {
|
|
public:
|
|
MxCriticalSection();
|
|
~MxCriticalSection();
|
|
|
|
static void SetDoMutex();
|
|
|
|
void Enter();
|
|
void Leave();
|
|
|
|
private:
|
|
CRITICAL_SECTION m_criticalSection; // 0x00
|
|
HANDLE m_mutex; // 0x18
|
|
};
|
|
|
|
#endif // MXCRITICALSECTION_H
|