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

Comparing jsr166/src/main/java/util/concurrent/Semaphore.java (file contents):
Revision 1.69 by jsr166, Sun Jan 4 17:00:55 2015 UTC vs.
Revision 1.70 by jsr166, Fri Jan 16 13:32:17 2015 UTC

# Line 452 | Line 452 | public class Semaphore implements java.i
452       *
453       * <p>Acquires the given number of permits, if they are available,
454       * and returns immediately, reducing the number of available permits
455 <     * by the given amount.This method has the same effect as the
455 >     * by the given amount. This method has the same effect as the
456       * loop {@code for (int i = 0; i < permits; ++i) acquireUninterruptibly();}
457       * except that it atomically acquires the permits all at once:
458       *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines