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

Comparing jsr166/src/main/java/util/concurrent/ScheduledThreadPoolExecutor.java (file contents):
Revision 1.16 by dl, Wed Jan 21 01:47:00 2004 UTC vs.
Revision 1.17 by dl, Wed Jan 21 15:20:35 2004 UTC

# Line 44 | Line 44 | public class ScheduledThreadPoolExecutor
44       */
45      private volatile boolean executeExistingDelayedTasksAfterShutdown = true;
46  
47
47      /**
48       * Sequence number to break scheduling ties, and in turn to
49       * guarantee FIFO order among tied entries.
# Line 57 | Line 56 | public class ScheduledThreadPoolExecutor
56      /**
57       * Return nanosecond time offset by origin
58       */
59 <    private long now() {
59 >    final long now() {
60          return System.nanoTime() - NANO_ORIGIN;
61      }
62  
# Line 135 | Line 134 | public class ScheduledThreadPoolExecutor
134          }
135  
136          /**
138         * Returns the period, or zero if non-periodic.
139         *
140         * @return the period
141         */
142        long getPeriod(TimeUnit unit) {
143            return unit.convert(period, TimeUnit.NANOSECONDS);
144        }
145
146        /**
137           * Run a periodic task
138           */
139          private void runPeriodic() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines