isle-portable/LEGO1/omni/src/system/mxautolock.cpp
Christian Semmler 51adf75b9b
(Refactor) Use more forward declarations (#881)
* Use more forward declarations

* Use more forward declarations

* Add more forward declarations

* Fix
2024-05-03 18:19:12 +02:00

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();
}
}