Lines Matching refs:arg

391      * @param arg the acquire argument
394 final boolean acquireQueued(final Node node, long arg) {
399 if (p == head && tryAcquire(arg)) {
416 * @param arg the acquire argument
418 private void doAcquireInterruptibly(long arg)
424 if (p == head && tryAcquire(arg)) {
442 * @param arg the acquire argument
446 private boolean doAcquireNanos(long arg, long nanosTimeout)
455 if (p == head && tryAcquire(arg)) {
479 * @param arg the acquire argument
481 private void doAcquireShared(long arg) {
488 long r = tryAcquireShared(arg);
509 * @param arg the acquire argument
511 private void doAcquireSharedInterruptibly(long arg)
518 long r = tryAcquireShared(arg);
538 * @param arg the acquire argument
542 private boolean doAcquireSharedNanos(long arg, long nanosTimeout)
552 long r = tryAcquireShared(arg);
592 * @param arg the acquire argument. This value is always the one
604 protected boolean tryAcquire(long arg) {
617 * @param arg the release argument. This value is always the one
630 protected boolean tryRelease(long arg) {
647 * @param arg the acquire argument. This value is always the one
666 protected long tryAcquireShared(long arg) {
678 * @param arg the release argument. This value is always the one
691 protected boolean tryReleaseShared(long arg) {
722 * @param arg the acquire argument. This value is conveyed to
726 public final void acquire(long arg) {
727 if (!tryAcquire(arg) &&
728 acquireQueued(addWaiter(Node.EXCLUSIVE), arg))
741 * @param arg the acquire argument. This value is conveyed to
746 public final void acquireInterruptibly(long arg)
750 if (!tryAcquire(arg))
751 doAcquireInterruptibly(arg);
764 * @param arg the acquire argument. This value is conveyed to
771 public final boolean tryAcquireNanos(long arg, long nanosTimeout)
775 return tryAcquire(arg) ||
776 doAcquireNanos(arg, nanosTimeout);
784 * @param arg the release argument. This value is conveyed to
789 public final boolean release(long arg) {
790 if (tryRelease(arg)) {
806 * @param arg the acquire argument. This value is conveyed to
810 public final void acquireShared(long arg) {
811 if (tryAcquireShared(arg) < 0)
812 doAcquireShared(arg);
822 * @param arg the acquire argument.
828 public final void acquireSharedInterruptibly(long arg)
832 if (tryAcquireShared(arg) < 0)
833 doAcquireSharedInterruptibly(arg);
845 * @param arg the acquire argument. This value is conveyed to
852 public final boolean tryAcquireSharedNanos(long arg, long nanosTimeout)
856 return tryAcquireShared(arg) >= 0 ||
857 doAcquireSharedNanos(arg, nanosTimeout);
864 * @param arg the release argument. This value is conveyed to
869 public final boolean releaseShared(long arg) {
870 if (tryReleaseShared(arg)) {
1023 * protected boolean tryAcquire(int arg) {