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:
parent
98244f1ed1
commit
fb5cfcd606
5 changed files with 26 additions and 28 deletions
|
|
@ -125,10 +125,7 @@ void AudioTransportSource::stop()
|
|||
{
|
||||
if (playing)
|
||||
{
|
||||
{
|
||||
const ScopedLock sl (callbackLock);
|
||||
playing = false;
|
||||
}
|
||||
playing = false;
|
||||
|
||||
int n = 500;
|
||||
while (--n >= 0 && ! stopped)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue