mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-09 10:05:24 +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)
|
if (synch)
|
||||||
{
|
{
|
||||||
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());
|
||||||
return job.getResult();
|
if (job.getResult() == null) Thread.sleep(200);
|
||||||
|
}
|
||||||
|
return job.getResult();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue