isle/LEGO1/mxautolocker.cpp

17 lines
357 B
C++
Raw Normal View History

2023-06-23 12:17:41 -04:00
#include "mxautolocker.h"
// OFFSET: LEGO1 0x100b8ed0
2023-10-24 19:38:27 -04:00
MxAutoLocker::MxAutoLocker(MxCriticalSection* critsect)
2023-06-23 12:17:41 -04:00
{
2023-10-24 19:38:27 -04:00
this->m_criticalSection = critsect;
if (this->m_criticalSection != 0)
this->m_criticalSection->Enter();
2023-06-23 12:17:41 -04:00
}
// OFFSET: LEGO1 0x100b8ef0
MxAutoLocker::~MxAutoLocker()
{
2023-10-24 19:38:27 -04:00
if (this->m_criticalSection != 0)
this->m_criticalSection->Leave();
2023-06-23 12:17:41 -04:00
}