isle/LEGO1/mxautolocker.cpp
Christian Semmler 78c37ada37 More fixes
2023-12-12 10:22:58 -05:00

17 lines
379 B
C++

#include "mxautolocker.h"
// FUNCTION: LEGO1 0x100b8ed0
MxAutoLocker::MxAutoLocker(MxCriticalSection* p_criticalSection)
{
this->m_criticalSection = p_criticalSection;
if (this->m_criticalSection != 0)
this->m_criticalSection->Enter();
}
// FUNCTION: LEGO1 0x100b8ef0
MxAutoLocker::~MxAutoLocker()
{
if (this->m_criticalSection != 0)
this->m_criticalSection->Leave();
}