mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 09:24:17 +00:00
Beta match MxAutoLock and MxCriticalSection (#1638)
Co-authored-by: jonschz <jonschz@users.noreply.github.com>
This commit is contained in:
@@ -29,7 +29,7 @@ void MxLoopingFlcPresenter::Init()
|
||||
// FUNCTION: LEGO1 0x100b4430
|
||||
void MxLoopingFlcPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
m_criticalSection.Enter();
|
||||
ENTER(m_criticalSection);
|
||||
Init();
|
||||
m_criticalSection.Leave();
|
||||
|
||||
@@ -117,7 +117,7 @@ MxResult MxLoopingFlcPresenter::AddToManager()
|
||||
MxBool locked = FALSE;
|
||||
|
||||
if (MxFlcPresenter::AddToManager() == SUCCESS) {
|
||||
m_criticalSection.Enter();
|
||||
ENTER(m_criticalSection);
|
||||
locked = TRUE;
|
||||
result = SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user