diff options
author | Mark Wielaard <mark@klomp.org> | 2004-07-17 08:52:13 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2004-07-17 08:52:13 +0000 |
commit | 10c383a4be1ee140d5387bb0448ffb160e97896d (patch) | |
tree | 54b8835f0a21b3fba59b11fc3fb58f889b5d0930 /libjava/java | |
parent | 2ccc5a9508b416a39b63eb822ff674bcde7a9ac0 (diff) | |
download | gcc-10c383a4be1ee140d5387bb0448ffb160e97896d.zip gcc-10c383a4be1ee140d5387bb0448ffb160e97896d.tar.gz gcc-10c383a4be1ee140d5387bb0448ffb160e97896d.tar.bz2 |
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
Diffstat (limited to 'libjava/java')
-rw-r--r-- | libjava/java/awt/event/InvocationEvent.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libjava/java/awt/event/InvocationEvent.java b/libjava/java/awt/event/InvocationEvent.java index fbf7b5e..76d4a55 100644 --- a/libjava/java/awt/event/InvocationEvent.java +++ b/libjava/java/awt/event/InvocationEvent.java @@ -189,8 +189,13 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent } else runnable.run(); - if (notifier != null) - notifier.notifyAll(); + + Object o = notifier; + if (o != null) + synchronized(o) + { + o.notifyAll(); + } } /** |