aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-08-03 00:26:21 -0700
committerChris Robinson <[email protected]>2014-08-03 00:26:21 -0700
commitf5194a9d8e9ce58b0c1a082686ccf180ea66f8ad (patch)
tree4af7b454465d607a9465e849b6b75e02e84aef0e /Alc
parent659b3407162e2354c89ebdc9858c9a9fb39ad3d3 (diff)
Use an ATOMIC_INIT macro instead of ATOMIC_LOAD_UNSAFE
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index b17742f3..f0875f37 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1882,7 +1882,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
{
ALsizei pos;
- ATOMIC_STORE_UNSAFE(&context->UpdateSources, AL_FALSE);
+ ATOMIC_STORE(&context->UpdateSources, AL_FALSE);
LockUIntMapRead(&context->EffectSlotMap);
for(pos = 0;pos < context->EffectSlotMap.size;pos++)
{
@@ -1914,7 +1914,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
source->Send[s].GainHF = 1.0f;
s++;
}
- ATOMIC_STORE_UNSAFE(&source->NeedsUpdate, AL_TRUE);
+ ATOMIC_STORE(&source->NeedsUpdate, AL_TRUE);
}
UnlockUIntMapRead(&context->SourceMap);
@@ -1931,7 +1931,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
}
src->Update(src, context);
- ATOMIC_STORE_UNSAFE(&source->NeedsUpdate, AL_FALSE);
+ ATOMIC_STORE(&source->NeedsUpdate, AL_FALSE);
}
context = context->next;
@@ -2110,8 +2110,8 @@ static ALvoid InitContext(ALCcontext *Context)
Context->Listener->Params.Velocity[i] = 0.0f;
//Validate Context
- ATOMIC_STORE_UNSAFE(&Context->LastError, AL_NO_ERROR);
- ATOMIC_STORE_UNSAFE(&Context->UpdateSources, AL_FALSE);
+ ATOMIC_INIT(&Context->LastError, AL_NO_ERROR);
+ ATOMIC_INIT(&Context->UpdateSources, AL_FALSE);
Context->ActiveSourceCount = 0;
InitUIntMap(&Context->SourceMap, Context->Device->MaxNoOfSources);
InitUIntMap(&Context->EffectSlotMap, Context->Device->AuxiliaryEffectSlotMax);
@@ -3076,14 +3076,14 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName)
InitRef(&device->ref, 1);
device->Connected = ALC_TRUE;
device->Type = Playback;
- ATOMIC_STORE_UNSAFE(&device->LastError, ALC_NO_ERROR);
+ ATOMIC_INIT(&device->LastError, ALC_NO_ERROR);
device->Flags = 0;
device->Bs2b = NULL;
device->Bs2bLevel = 0;
AL_STRING_INIT(device->DeviceName);
- ATOMIC_STORE_UNSAFE(&device->ContextList, NULL);
+ ATOMIC_INIT(&device->ContextList, NULL);
device->ClockBase = 0;
device->SamplesDone = 0;
@@ -3569,14 +3569,14 @@ ALC_API ALCdevice* ALC_APIENTRY alcLoopbackOpenDeviceSOFT(const ALCchar *deviceN
InitRef(&device->ref, 1);
device->Connected = ALC_TRUE;
device->Type = Loopback;
- ATOMIC_STORE_UNSAFE(&device->LastError, ALC_NO_ERROR);
+ ATOMIC_INIT(&device->LastError, ALC_NO_ERROR);
device->Flags = 0;
device->Bs2b = NULL;
device->Bs2bLevel = 0;
AL_STRING_INIT(device->DeviceName);
- ATOMIC_STORE_UNSAFE(&device->ContextList, NULL);
+ ATOMIC_INIT(&device->ContextList, NULL);
device->ClockBase = 0;
device->SamplesDone = 0;