diff options
author | Chris Robinson <[email protected]> | 2014-11-08 18:01:45 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-11-08 18:04:01 -0800 |
commit | 1c4055419ed390aabe5b32429bb3c0f593c2bf08 (patch) | |
tree | 52a06a16a93bc796e1882edfba6537736fb23cb7 | |
parent | 3eab44001d045f19756b7b6aab765143d90cb79d (diff) |
Don't use the device lock/unlock wrappers needlessly
-rw-r--r-- | Alc/ALc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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)) |