Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for tryAcquireShared (0.52 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

          private V value;
          private Throwable exception;
    
          /*
           * Acquisition succeeds if the future is done, otherwise it fails.
           */
          @Override
          protected int tryAcquireShared(int ignored) {
            if (isDone()) {
              return 1;
            }
            return -1;
          }
    
          /*
           * We always allow a release to go through, this means the state has been
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top