aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-08-01 02:04:40 -0700
committerChris Robinson <[email protected]>2014-08-01 02:04:40 -0700
commit87423f046e378ec5c126cacb808dbc600481dcbd (patch)
tree2d735f719149dd2b00e9bebc45078cbde5907f84 /Alc/ALu.c
parent15a58eb38375247b6c57a7ceab5aa74895d638cd (diff)
Use atomics for the device and context list heads
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index e33a756b..a85e1aa0 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1160,7 +1160,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
ALCdevice_Lock(device);
V(device->Synth,process)(SamplesToDo, device->DryBuffer);
- ctx = device->ContextList;
+ ctx = ATOMIC_LOAD(&device->ContextList);
while(ctx)
{
ALenum DeferUpdates = ctx->DeferUpdates;
@@ -1295,7 +1295,7 @@ ALvoid aluHandleDisconnect(ALCdevice *device)
device->Connected = ALC_FALSE;
- Context = device->ContextList;
+ Context = ATOMIC_LOAD(&device->ContextList);
while(Context)
{
ALactivesource **src, **src_end;