mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 14:15:23 +02:00
applied patch for 141803: 100% cpu when connecting
This commit is contained in:
parent
7b9199ede1
commit
e89adf6b64
1 changed files with 11 additions and 9 deletions
|
@ -2105,15 +2105,17 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
|
|||
|
||||
if (synch)
|
||||
{
|
||||
while (!job.hasStarted())
|
||||
{
|
||||
Display.getCurrent().readAndDispatch();
|
||||
}
|
||||
while (job.getResult() == null)
|
||||
{
|
||||
while (Display.getCurrent().readAndDispatch());
|
||||
}
|
||||
return job.getResult();
|
||||
while (!job.hasStarted())
|
||||
{
|
||||
while (Display.getCurrent().readAndDispatch());
|
||||
if (!job.hasStarted()) Thread.sleep(200);
|
||||
}
|
||||
while (job.getResult() == null)
|
||||
{
|
||||
while (Display.getCurrent().readAndDispatch());
|
||||
if (job.getResult() == null) Thread.sleep(200);
|
||||
}
|
||||
return job.getResult();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue