mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Beta match MxAutoLock
and MxCriticalSection
(#1638)
Co-authored-by: jonschz <jonschz@users.noreply.github.com>
This commit is contained in:
@@ -98,7 +98,7 @@ void LegoLoadCacheSoundPresenter::DoneTickle()
|
||||
// FUNCTION: LEGO1 0x10018700
|
||||
MxResult LegoLoadCacheSoundPresenter::PutData()
|
||||
{
|
||||
m_criticalSection.Enter();
|
||||
ENTER(m_criticalSection);
|
||||
|
||||
if (m_currentTickleState == e_done) {
|
||||
m_cacheSound = SoundManager()->GetCacheSoundManager()->ManageSoundEntry(m_cacheSound);
|
||||
|
@@ -46,7 +46,7 @@ MxResult LegoSoundManager::Create(MxU32 p_frequencyMS, MxBool p_createThread)
|
||||
MxResult result = FAILURE;
|
||||
|
||||
if (MxSoundManager::Create(10, FALSE) == SUCCESS) {
|
||||
m_criticalSection.Enter();
|
||||
ENTER(m_criticalSection);
|
||||
locked = TRUE;
|
||||
|
||||
if (MxOmni::IsSound3D()) {
|
||||
|
@@ -29,7 +29,7 @@ void LegoHideAnimPresenter::Init()
|
||||
// FUNCTION: LEGO1 0x1006da60
|
||||
void LegoHideAnimPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
m_criticalSection.Enter();
|
||||
ENTER(m_criticalSection);
|
||||
|
||||
if (m_boundaryMap) {
|
||||
delete[] m_boundaryMap;
|
||||
|
@@ -38,7 +38,7 @@ void LegoLocomotionAnimPresenter::Init()
|
||||
// FUNCTION: LEGO1 0x1006d0e0
|
||||
void LegoLocomotionAnimPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
m_criticalSection.Enter();
|
||||
ENTER(m_criticalSection);
|
||||
|
||||
if (m_unk0xc4) {
|
||||
delete[] m_unk0xc4;
|
||||
|
@@ -33,7 +33,7 @@ void LegoModelPresenter::configureLegoModelPresenter(MxS32 p_modelPresenterConfi
|
||||
// FUNCTION: LEGO1 0x1007f670
|
||||
void LegoModelPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
m_criticalSection.Enter();
|
||||
ENTER(m_criticalSection);
|
||||
m_roi = NULL;
|
||||
m_addedToView = FALSE;
|
||||
m_criticalSection.Leave();
|
||||
|
@@ -31,7 +31,7 @@ void LegoPalettePresenter::Init()
|
||||
// FUNCTION: LEGO1 0x1007a0e0
|
||||
void LegoPalettePresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
m_criticalSection.Enter();
|
||||
ENTER(m_criticalSection);
|
||||
if (m_palette) {
|
||||
delete m_palette;
|
||||
}
|
||||
|
@@ -37,7 +37,7 @@ MxResult LegoPartPresenter::AddToManager()
|
||||
// FUNCTION: LEGO1 0x1007c9d0
|
||||
void LegoPartPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
m_criticalSection.Enter();
|
||||
ENTER(m_criticalSection);
|
||||
VideoManager()->UnregisterPresenter(*this);
|
||||
|
||||
if (m_parts) {
|
||||
|
Reference in New Issue
Block a user