/[classpath]/classpath/java/awt/EventDispatchThread.java
ViewVC logotype

Diff of /classpath/java/awt/EventDispatchThread.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4.2.2 by gnu_andrew, Sat Jan 15 17:01:47 2005 UTC revision 1.4.2.3 by gnu_andrew, Sun Jan 16 15:15:11 2005 UTC
# Line 53  class EventDispatchThread extends Thread Line 53  class EventDispatchThread extends Thread
53      setName("AWT-EventQueue-" + ++dispatchThreadNum);      setName("AWT-EventQueue-" + ++dispatchThreadNum);
54      this.queue = queue;      this.queue = queue;
55      setPriority(NORM_PRIORITY + 1);      setPriority(NORM_PRIORITY + 1);
     start();  
56    }    }
57    
58    public void run()    public void run()
# Line 63  class EventDispatchThread extends Thread Line 62  class EventDispatchThread extends Thread
62          try          try
63          {          {
64            AWTEvent evt = queue.getNextEvent();            AWTEvent evt = queue.getNextEvent();
           if (isInterrupted ())  
             {  
               // We are interrupted when we should finish executing  
               return;  
             }  
65    
66            KeyboardFocusManager manager;            KeyboardFocusManager manager;
67            manager = KeyboardFocusManager.getCurrentKeyboardFocusManager ();            manager = KeyboardFocusManager.getCurrentKeyboardFocusManager ();
# Line 80  class EventDispatchThread extends Thread Line 74  class EventDispatchThread extends Thread
74            if (!manager.dispatchEvent (evt))            if (!manager.dispatchEvent (evt))
75              queue.dispatchEvent(evt);              queue.dispatchEvent(evt);
76          }          }
77            catch (ThreadDeath death)
78            {
79              // If someone wants to kill us, let them.
80              return;
81            }
82          catch (InterruptedException ie)          catch (InterruptedException ie)
83          {          {
84            // We are interrupted when we should finish executing            // We are interrupted when we should finish executing

Legend:
Removed from v.1.4.2.2  
changed lines
  Added in v.1.4.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26