Browse Source

Don't waste CPU while waiting for bridges to finish

tags/v1.9.11
falkTX 6 years ago
parent
commit
70161943f3
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      source/modules/water/threads/ChildProcess.cpp

+ 3
- 1
source/modules/water/threads/ChildProcess.cpp View File

@@ -103,7 +103,7 @@ public:
if (! isRunning())
break;
Sleep(0);
Sleep(5);
}
else
{
@@ -300,6 +300,8 @@ bool ChildProcess::waitForProcessToFinish (const int timeoutMs) const
{
if (! isRunning())
return true;
carla_msleep(5);
}
while (timeoutMs < 0 || Time::getMillisecondCounter() < timeoutTime);


Loading…
Cancel
Save