287 |
|
* |
288 |
|
*/ |
289 |
|
public void acquireUninterruptibly() { |
290 |
< |
sync.acquireSharedUninterruptibly(1); |
290 |
> |
sync.acquireShared(1); |
291 |
|
} |
292 |
|
|
293 |
|
/** |
360 |
|
*/ |
361 |
|
public boolean tryAcquire(long timeout, TimeUnit unit) |
362 |
|
throws InterruptedException { |
363 |
< |
return sync.acquireSharedNanos(1, unit.toNanos(timeout)); |
363 |
> |
return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); |
364 |
|
} |
365 |
|
|
366 |
|
/** |
449 |
|
*/ |
450 |
|
public void acquireUninterruptibly(int permits) { |
451 |
|
if (permits < 0) throw new IllegalArgumentException(); |
452 |
< |
sync.acquireSharedUninterruptibly(permits); |
452 |
> |
sync.acquireShared(permits); |
453 |
|
} |
454 |
|
|
455 |
|
/** |
538 |
|
public boolean tryAcquire(int permits, long timeout, TimeUnit unit) |
539 |
|
throws InterruptedException { |
540 |
|
if (permits < 0) throw new IllegalArgumentException(); |
541 |
< |
return sync.acquireSharedNanos(permits, unit.toNanos(timeout)); |
541 |
> |
return sync.tryAcquireSharedNanos(permits, unit.toNanos(timeout)); |
542 |
|
} |
543 |
|
|
544 |
|
/** |