mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-15 11:51:15 +00:00
* Use more forward declarations * Use more forward declarations * Add more forward declarations * Fix
21 lines
411 B
C++
21 lines
411 B
C++
#include "mxautolock.h"
|
|
|
|
#include "mxcriticalsection.h"
|
|
|
|
// FUNCTION: LEGO1 0x100b8ed0
|
|
MxAutoLock::MxAutoLock(MxCriticalSection* p_criticalSection)
|
|
{
|
|
this->m_criticalSection = p_criticalSection;
|
|
if (this->m_criticalSection != 0) {
|
|
this->m_criticalSection->Enter();
|
|
}
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100b8ef0
|
|
MxAutoLock::~MxAutoLock()
|
|
{
|
|
if (this->m_criticalSection != 0) {
|
|
this->m_criticalSection->Leave();
|
|
}
|
|
}
|