1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Linux: Fixed a data race in the ALSA code

This commit is contained in:
ed 2020-05-21 09:01:29 +01:00
parent 685dc4fd78
commit da552112a8

View file

@ -791,7 +791,7 @@ private:
//==============================================================================
const String inputId, outputId;
std::unique_ptr<ALSADevice> outputDevice, inputDevice;
int numCallbacks = 0;
std::atomic<int> numCallbacks { 0 };
bool audioIoInProgress = false;
CriticalSection callbackLock;