1
0
Fork 0
mirror of https://github.com/isledecomp/isle.git synced 2025-05-17 00:05:55 -04:00
isle/LEGO1/mxautolocker.cpp

17 lines
364 B
C++
Raw Normal View History

2023-06-23 18:17:41 +02:00
#include "mxautolocker.h"
// OFFSET: LEGO1 0x100b8ed0
MxAutoLocker::MxAutoLocker(MxCriticalSection *critsect)
{
this->m_criticalSection = critsect;
if (this->m_criticalSection != 0)
this->m_criticalSection->Enter();
}
// OFFSET: LEGO1 0x100b8ef0
MxAutoLocker::~MxAutoLocker()
{
if (this->m_criticalSection != 0)
this->m_criticalSection->Leave();
}