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

View file

@ -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
{