1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

[228126] Traditional Rendering: ViewportCache.run() synchronization problem

This commit is contained in:
Ted Williams 2009-03-14 06:23:27 +00:00
parent 29db111c61
commit 13f05bc71c

View file

@ -727,9 +727,9 @@ public class Rendering extends Composite implements IDebugEventSetListener
public void dispose()
{
fDisposed = true;
synchronized(this)
synchronized(fQueue)
{
this.notify();
fQueue.notify();
}
}
@ -789,10 +789,7 @@ public class Rendering extends Composite implements IDebugEventSetListener
fQueue.addElement(element);
fLastQueued = element;
}
}
synchronized(this)
{
this.notify();
fQueue.notify();
}
}
@ -836,11 +833,14 @@ public class Rendering extends Composite implements IDebugEventSetListener
}
else
{
synchronized(this)
synchronized(fQueue)
{
try
{
this.wait();
if(fQueue.isEmpty())
{
fQueue.wait();
}
}
catch(Exception e)
{