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

Comparing jsr166/src/main/java/util/concurrent/DelayQueue.java (file contents):
Revision 1.39 by jsr166, Sat Aug 20 07:41:47 2005 UTC vs.
Revision 1.40 by dl, Thu Sep 22 00:32:00 2005 UTC

# Line 203 | Line 203 | public class DelayQueue<E extends Delaye
203                  } else {
204                      long delay =  first.getDelay(TimeUnit.NANOSECONDS);
205                      if (delay > 0) {
206 +                        if (nanos <= 0)
207 +                            return null;
208                          if (delay > nanos)
209                              delay = nanos;
210                          long timeLeft = available.awaitNanos(delay);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines