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. |
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} |
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 |