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:
parent
29db111c61
commit
13f05bc71c
1 changed files with 8 additions and 8 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue