Commit 10c383a4 by Mark Wielaard Committed by Michael Koch

InvocationEvent.java (dispatch): Synchronize on notifier object before calling notifyAll().

2004-07-17  Mark Wielaard  <mark@klomp.org>

	* java/awt/event/InvocationEvent.java (dispatch): Synchronize
	on notifier object before calling notifyAll().

From-SVN: r84859
parent 2ccc5a95
2004-07-17 Mark Wielaard <mark@klomp.org>
* java/awt/event/InvocationEvent.java (dispatch): Synchronize
on notifier object before calling notifyAll().
2004-07-17 Michael Koch <konqueror@gmx.de> 2004-07-17 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/channels/FileChannelImpl.java * gnu/java/nio/channels/FileChannelImpl.java
......
...@@ -189,8 +189,13 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent ...@@ -189,8 +189,13 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent
} }
else else
runnable.run(); runnable.run();
if (notifier != null)
notifier.notifyAll(); Object o = notifier;
if (o != null)
synchronized(o)
{
o.notifyAll();
}
} }
/** /**
......
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