diff options
author | Chris Robinson <[email protected]> | 2014-08-01 02:04:40 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-08-01 02:04:40 -0700 |
commit | 87423f046e378ec5c126cacb808dbc600481dcbd (patch) | |
tree | 2d735f719149dd2b00e9bebc45078cbde5907f84 /Alc/ALu.c | |
parent | 15a58eb38375247b6c57a7ceab5aa74895d638cd (diff) |
Use atomics for the device and context list heads
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |