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

Comparing jsr166/src/main/java/util/concurrent/CountDownLatch.java (file contents):
Revision 1.22 by dl, Sat Jan 10 20:37:03 2004 UTC vs.
Revision 1.23 by dl, Sun Jan 11 16:02:17 2004 UTC

# Line 241 | Line 241 | public class CountDownLatch {
241       */
242      public boolean await(long timeout, TimeUnit unit)
243          throws InterruptedException {
244 <        return sync.acquireSharedNanos(1, unit.toNanos(timeout));
244 >        return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout));
245      }
246  
247      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines