# | 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 | * |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |