Browse Source

Windows: Use Thread::sleep() instead of yield() when waiting for ChildProcess output to avoid eating CPU

tags/2021-05-28
ed 5 years ago
parent
commit
884f2c1332
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/native/juce_win32_Threads.cpp

+ 1
- 1
modules/juce_core/native/juce_win32_Threads.cpp View File

@@ -448,7 +448,7 @@ public:
if (! isRunning())
break;
Thread::yield();
Thread::sleep (1);
}
else
{


Loading…
Cancel
Save