mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-09 18: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
|
@ -2107,11 +2107,13 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
|
||||||
{
|
{
|
||||||
while (!job.hasStarted())
|
while (!job.hasStarted())
|
||||||
{
|
{
|
||||||
Display.getCurrent().readAndDispatch();
|
while (Display.getCurrent().readAndDispatch());
|
||||||
|
if (!job.hasStarted()) Thread.sleep(200);
|
||||||
}
|
}
|
||||||
while (job.getResult() == null)
|
while (job.getResult() == null)
|
||||||
{
|
{
|
||||||
while (Display.getCurrent().readAndDispatch());
|
while (Display.getCurrent().readAndDispatch());
|
||||||
|
if (job.getResult() == null) Thread.sleep(200);
|
||||||
}
|
}
|
||||||
return job.getResult();
|
return job.getResult();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue