diff options
author | Chris Robinson <[email protected]> | 2018-03-02 18:38:59 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-03-02 19:16:55 -0800 |
commit | bd32a682f7476e7bdd8240e0244adff047d99f49 (patch) | |
tree | 0b2a70a69153978b89638218f19e3d2d5c3b4d28 /Alc/ALu.c | |
parent | 03274a5b95146675c05b5b6a0340f45a7b122c50 (diff) |
Use atomic variables instead of volatile
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1827,7 +1827,7 @@ void aluMixData(ALCdevice *device, ALvoid *OutBuffer, ALsizei NumSamples) state->OutChannels); } - ctx = ctx->next; + ctx = ATOMIC_LOAD(&ctx->next, almemory_order_relaxed); } /* Increment the clock time. Every second's worth of samples is @@ -1965,6 +1965,6 @@ void aluHandleDisconnect(ALCdevice *device, const char *msg, ...) ATOMIC_STORE(&voice->Playing, false, almemory_order_release); } - ctx = ctx->next; + ctx = ATOMIC_LOAD(&ctx->next, almemory_order_relaxed); } } |