Browse Source

Fix for changing the OSX HighResolutionTimer interval while it's still running.

tags/2021-05-28
jules 11 years ago
parent
commit
13f99df268
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      modules/juce_core/native/juce_posix_SharedCode.h

+ 4
- 3
modules/juce_core/native/juce_posix_SharedCode.h View File

@@ -1150,10 +1150,11 @@ struct HighResolutionTimer::Pimpl
void start (int newPeriod)
{
periodMs = newPeriod;
if (thread == 0)
if (periodMs != newPeriod)
{
stop();
periodMs = newPeriod;
shouldStop = false;
if (pthread_create (&thread, nullptr, timerThread, this) == 0)


Loading…
Cancel
Save