Kaydet (Commit) 52d84448 authored tarafından Noel Grandin's avatar Noel Grandin

java: synching on a global object is not very useful

when you're using it as a local lock

Change-Id: Ie7f42176f7b582c6dad426d9f8eb0a846a3519c2
üst 567592c9
......@@ -66,7 +66,6 @@ class EventQueue
private EventQueue ()
{
maMonitor = Boolean.TRUE;
maRegularQueue = new LinkedList<Runnable>();
maDisposingQueue = new LinkedList<Runnable>();
new Thread(this, "AWB.EventQueue").start();
......@@ -133,7 +132,7 @@ class EventQueue
}
private static EventQueue maInstance = null;
private final Object maMonitor;
private final Object maMonitor = new Object();
private final LinkedList<Runnable> maRegularQueue;
private final LinkedList<Runnable> maDisposingQueue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment