Browse Source

Fixed possible dead-lock

tags/2021-05-28
hogliux 8 years ago
parent
commit
59a47d1fb4
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      modules/juce_core/native/juce_posix_SharedCode.h

+ 5
- 2
modules/juce_core/native/juce_posix_SharedCode.h View File

@@ -1252,10 +1252,13 @@ struct HighResolutionTimer::Pimpl
{
if (thread != 0)
{
shouldStop = true;
while (thread != 0 && thread != pthread_self())
{
// if the timer callback itself calls startTimer then we need
// to override this
shouldStop = true;
Thread::yield();
}
}
}


Loading…
Cancel
Save