2023-06-23 12:17:41 -04:00
|
|
|
#include "mxautolocker.h"
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100b8ed0
|
2023-12-13 05:48:14 -05:00
|
|
|
MxAutoLocker::MxAutoLocker(MxCriticalSection* p_criticalSection)
|
2023-06-23 12:17:41 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
this->m_criticalSection = p_criticalSection;
|
2023-10-24 19:38:27 -04:00
|
|
|
if (this->m_criticalSection != 0)
|
|
|
|
this->m_criticalSection->Enter();
|
2023-06-23 12:17:41 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100b8ef0
|
2023-06-23 12:17:41 -04:00
|
|
|
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
|
|
|
}
|