diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-09 04:26:17 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-09 04:26:17 +0000 |
commit | 71946bc3b406beb3d1fb9b447204e4236d645c43 (patch) | |
tree | cdf9958b411887bead2263ea8ef0bdfc8eae6319 /libjava/java/awt/ActiveEvent.java | |
parent | 0fc014c9ce8232f14be66144bf5a4c08a3e5ffe7 (diff) | |
download | ppe42-gcc-71946bc3b406beb3d1fb9b447204e4236d645c43.tar.gz ppe42-gcc-71946bc3b406beb3d1fb9b447204e4236d645c43.zip |
AWT/Swing merge from GNU Classpath.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56147 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/awt/ActiveEvent.java')
-rw-r--r-- | libjava/java/awt/ActiveEvent.java | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/libjava/java/awt/ActiveEvent.java b/libjava/java/awt/ActiveEvent.java index d48a09b321b..357627dbd05 100644 --- a/libjava/java/awt/ActiveEvent.java +++ b/libjava/java/awt/ActiveEvent.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2000, 2002 Free Software Foundation +/* ActiveEvent.java -- a self-dispatching event + Copyright (C) 2000, 2002 Free Software Foundation This file is part of GNU Classpath. @@ -38,13 +39,23 @@ exception statement from your version. */ package java.awt; /** + * An interface for events which can dispatch themselves in another thread. + * This has two uses: first, if your code is in a critical section, calling a + * synchronized method might deadlock. But by using an ActiveEvent to call + * the second section, it will not obtain the lock until you have left the + * critical section, avoiding deadlock. The second use is for calling + * untrusted code. For example, system code should use an ActiveEvent to + * invoke user code securely. + * * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 + * @since 1.2 + * @status updated to 1.4 */ - -/* Status: Believed complete and correct to JDK 1.2. */ - public interface ActiveEvent { - public void dispatch (); -} + /** + * Dispatch the event, according to what the event needs done. Invoked + * automatically if this is placed on the <code>EventDispatchQueue</code>. + */ + public void dispatch(); +} // interface ActiveEvent |