1
0
Fork 0
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:
David McKnight 2006-05-16 20:42:21 +00:00
parent 7b9199ede1
commit e89adf6b64

View file

@ -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();
} }