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.71 by jsr166, Fri Jan 16 17:45:52 2015 UTC vs.
Revision 1.72 by jsr166, Sun Jan 18 20:28:32 2015 UTC

# Line 419 | Line 419 | public class Semaphore implements java.i
419       * one of two things happens:
420       * <ul>
421       * <li>Some other thread invokes one of the {@link #release() release}
422 <     * methods for this semaphore, the current thread is next to be assigned
422 >     * methods for this semaphore and the current thread is next to be assigned
423       * permits and the number of available permits satisfies this request; or
424       * <li>Some other thread {@linkplain Thread#interrupt interrupts}
425       * the current thread.
# Line 459 | Line 459 | public class Semaphore implements java.i
459       * <p>If insufficient permits are available then the current thread becomes
460       * disabled for thread scheduling purposes and lies dormant until
461       * some other thread invokes one of the {@link #release() release}
462 <     * methods for this semaphore, the current thread is next to be assigned
462 >     * methods for this semaphore and the current thread is next to be assigned
463       * permits and the number of available permits satisfies this request.
464       *
465       * <p>If the current thread is {@linkplain Thread#interrupt interrupted}
# Line 521 | Line 521 | public class Semaphore implements java.i
521       * purposes and lies dormant until one of three things happens:
522       * <ul>
523       * <li>Some other thread invokes one of the {@link #release() release}
524 <     * methods for this semaphore, the current thread is next to be assigned
524 >     * methods for this semaphore and the current thread is next to be assigned
525       * permits and the number of available permits satisfies this request; or
526       * <li>Some other thread {@linkplain Thread#interrupt interrupts}
527       * the current thread; or

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines