aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-11-08 18:01:45 -0800
committerChris Robinson <[email protected]>2014-11-08 18:04:01 -0800
commit1c4055419ed390aabe5b32429bb3c0f593c2bf08 (patch)
tree52a06a16a93bc796e1882edfba6537736fb23cb7
parent3eab44001d045f19756b7b6aab765143d90cb79d (diff)
Don't use the device lock/unlock wrappers needlessly
-rw-r--r--Alc/ALc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 98ff096c..2db97f69 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1997,7 +1997,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
}
SetMixerFPUMode(&oldMode);
- ALCdevice_Lock(device);
+ V0(device->Backend,lock)();
context = ATOMIC_LOAD(&device->ContextList);
while(context)
{
@@ -2012,7 +2012,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
if(V(slot->EffectState,deviceUpdate)(device) == AL_FALSE)
{
UnlockUIntMapRead(&context->EffectSlotMap);
- ALCdevice_Unlock(device);
+ V0(device->Backend,unlock)();
RestoreFPUMode(&oldMode);
return ALC_INVALID_DEVICE;
}
@@ -2067,14 +2067,14 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
if(V(slot->EffectState,deviceUpdate)(device) == AL_FALSE)
{
- ALCdevice_Unlock(device);
+ V0(device->Backend,unlock)();
RestoreFPUMode(&oldMode);
return ALC_INVALID_DEVICE;
}
ATOMIC_STORE(&slot->NeedsUpdate, AL_FALSE);
V(slot->EffectState,update)(device, slot);
}
- ALCdevice_Unlock(device);
+ V0(device->Backend,unlock)();
RestoreFPUMode(&oldMode);
if(!(device->Flags&DEVICE_PAUSED))