aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-30 21:58:14 -0800
committerChris Robinson <[email protected]>2018-12-30 21:58:14 -0800
commit5e03941701c112083b5dce14257fd8c51262f04f (patch)
treee60fe1ba85f1d42e0f2b574360713842769df135 /Alc/alu.cpp
parent9f5c9a2260849240bd680b8fdf533acdef7f9de1 (diff)
Use an atomic bool on things that only take true or false
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index 672b571b..1711d3bf 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -1817,7 +1817,7 @@ void aluMixData(ALCdevice *device, ALvoid *OutBuffer, ALsizei NumSamples)
void aluHandleDisconnect(ALCdevice *device, const char *msg, ...)
{
- if(!device->Connected.exchange(AL_FALSE, std::memory_order_acq_rel))
+ if(!device->Connected.exchange(false, std::memory_order_acq_rel))
return;
AsyncEvent evt{EventType_Disconnected};