2023-06-12 14:46:44 -04:00
|
|
|
#ifndef MXCRITICALSECTION_H
|
|
|
|
#define MXCRITICALSECTION_H
|
|
|
|
|
2023-06-27 22:04:07 -04:00
|
|
|
#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:
|
2024-01-24 21:16:29 -05:00
|
|
|
MxCriticalSection();
|
|
|
|
~MxCriticalSection();
|
2024-05-30 15:03:43 -04:00
|
|
|
|
2024-01-24 21:16:29 -05:00
|
|
|
static void SetDoMutex();
|
2024-05-30 15:03:43 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
void Enter();
|
|
|
|
void Leave();
|
2023-06-12 14:46:44 -04:00
|
|
|
|
|
|
|
private:
|
2023-12-25 13:32:01 -05:00
|
|
|
CRITICAL_SECTION m_criticalSection; // 0x00
|
|
|
|
HANDLE m_mutex; // 0x18
|
2023-06-12 14:46:44 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXCRITICALSECTION_H
|