diff options
author | Chris Robinson <[email protected]> | 2018-12-30 21:58:14 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-30 21:58:14 -0800 |
commit | 5e03941701c112083b5dce14257fd8c51262f04f (patch) | |
tree | e60fe1ba85f1d42e0f2b574360713842769df135 /Alc/alu.cpp | |
parent | 9f5c9a2260849240bd680b8fdf533acdef7f9de1 (diff) |
Use an atomic bool on things that only take true or false
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r-- | Alc/alu.cpp | 2 |
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}; |