mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-27 18:34:06 +00:00
Use AUTOLOCK macro (#660)
* Use AUTOLOCK macro * MxAutoLock * Remove semicolon Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com> --------- Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "decomp.h"
|
||||
#include "define.h"
|
||||
#include "mxautolocker.h"
|
||||
#include "mxautolock.h"
|
||||
#include "mxdssound.h"
|
||||
#include "mxmisc.h"
|
||||
#include "mxomni.h"
|
||||
@@ -241,7 +241,7 @@ void MxWavePresenter::LoopChunk(MxStreamChunk* p_chunk)
|
||||
// FUNCTION: LEGO1 0x100b2160
|
||||
MxResult MxWavePresenter::PutData()
|
||||
{
|
||||
MxAutoLocker lock(&m_criticalSection);
|
||||
AUTOLOCK(m_criticalSection);
|
||||
|
||||
if (IsEnabled()) {
|
||||
switch (m_currentTickleState) {
|
||||
@@ -280,7 +280,7 @@ MxResult MxWavePresenter::PutData()
|
||||
void MxWavePresenter::EndAction()
|
||||
{
|
||||
if (m_action) {
|
||||
MxAutoLocker lock(&m_criticalSection);
|
||||
AUTOLOCK(m_criticalSection);
|
||||
MxMediaPresenter::EndAction();
|
||||
|
||||
if (m_dsBuffer) {
|
||||
|
||||
Reference in New Issue
Block a user