EventQueue.java (invokeAndWait): Call postEvent() within synchronized block.

* java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
	synchronized block.
	* java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
	before calling notifyAll().

From-SVN: r35042
This commit is contained in:
Bryce McKinlay
2000-07-15 05:42:47 +01:00
parent ae0e50e87b
commit 1b0bd03b7f
2 changed files with 8 additions and 4 deletions
+2 -3
View File
@@ -153,11 +153,10 @@ public class EventQueue
InvocationEvent ie =
new InvocationEvent(eq, runnable, current, true);
eq.postEvent(ie);
synchronized (current)
{
eq.postEvent(ie);
current.wait();
}