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

Comparing jsr166/src/main/java/util/concurrent/TimeUnit.java (file contents):
Revision 1.6 by tim, Thu Jul 31 20:32:00 2003 UTC vs.
Revision 1.7 by dl, Wed Aug 6 16:08:49 2003 UTC

# Line 79 | Line 79 | public final class TimeUnit implements j
79      /**
80       * Perform a timed <tt>Object.wait</tt> using the current time unit.
81       * This is a convenience method that converts timeout arguments into the
82 <     * form required by the <tt>Object.wait</tt> method.
82 >     * form required by the <tt>Object.wait</tt> method.
83       * <p>For example, you could implement a blocking <tt>poll</tt> method (see
84       * {@link BlockingQueue#poll BlockingQueue.poll} using:
85       * <pre>  public synchronized  Object poll(long timeout, TimeUnit unit) throws InterruptedException {
# Line 147 | Line 147 | public final class TimeUnit implements j
147  
148      /**
149       * Utility method to compute the excess-nanosecond argument to
150 <     * wait, sleep, join.
151 <     * @fixme overflow?
150 >     * wait, sleep, join. The results may overflow, so public methods
151 >     * invoking this should document possible overflow unless
152 >     * overflow is known not to be possible for the given arguments.
153       */
154      private int excessNanos(long time, long ms) {
155          if (index == NS)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines