mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Windows: Use Thread::sleep() instead of yield() when waiting for ChildProcess output to avoid eating CPU
This commit is contained in:
parent
f46b60280e
commit
884f2c1332
1 changed files with 1 additions and 1 deletions
|
|
@ -448,7 +448,7 @@ public:
|
|||
if (! isRunning())
|
||||
break;
|
||||
|
||||
Thread::yield();
|
||||
Thread::sleep (1);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue