ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/Timer.java
(Generate patch)

Comparing jsr166/src/main/java/util/Timer.java (file contents):
Revision 1.1 by dl, Mon Jan 19 15:56:47 2004 UTC vs.
Revision 1.2 by jsr166, Wed Feb 18 03:47:33 2004 UTC

# Line 207 | Line 207 | public class Timer {
207  
208      /**
209       * Creates a new timer whose associated thread may be specified to
210 <     * run as a daemon.  A deamon thread is called for if the timer will
210 >     * run as a daemon.  A daemon thread is called for if the timer will
211       * be used to schedule repeating "maintenance activities", which must
212       * be performed as long as the application is running, but should not
213       * prolong the lifetime of the application.
# Line 464 | Line 464 | public class Timer {
464      }
465  
466      /**
467 <     * Schedule the specifed timer task for execution at the specified
467 >     * Schedule the specified timer task for execution at the specified
468       * time with the specified period, in milliseconds.  If period is
469       * positive, the task is scheduled for repeated execution; if period is
470       * zero, the task is scheduled for one-time execution. Time is specified
# Line 587 | Line 587 | class TimerThread extends Thread {
587          try {
588              mainLoop();
589          } finally {
590 <            // Somone killed this Thread, behave as if Timer cancelled
590 >            // Someone killed this Thread, behave as if Timer cancelled
591              synchronized(queue) {
592                  newTasksMayBeScheduled = false;
593                  queue.clear();  // Eliminate obsolete references

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines