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

Fix some data races flagged when running the AudioPlaybackDemo with Xcode's thread sanitiser enabled

This commit is contained in:
ed 2019-04-01 15:39:27 +01:00
parent 98244f1ed1
commit fb5cfcd606
5 changed files with 26 additions and 28 deletions

View file

@ -125,10 +125,7 @@ void AudioTransportSource::stop()
{
if (playing)
{
{
const ScopedLock sl (callbackLock);
playing = false;
}
playing = false;
int n = 500;
while (--n >= 0 && ! stopped)