aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-03-02 18:38:59 -0800
committerChris Robinson <[email protected]>2018-03-02 19:16:55 -0800
commitbd32a682f7476e7bdd8240e0244adff047d99f49 (patch)
tree0b2a70a69153978b89638218f19e3d2d5c3b4d28 /Alc/ALu.c
parent03274a5b95146675c05b5b6a0340f45a7b122c50 (diff)
Use atomic variables instead of volatile
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 3fd561ae..57f4188b 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -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);
}
}