Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for enterWhen (0.09 sec)

  1. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

        if (monitor.enterWhen(notEmpty, timeout, unit)) {
          try {
            return extract();
          } finally {
            monitor.leave();
          }
        } else {
          return null;
        }
      }
    
      @CanIgnoreReturnValue
      @Override
      public E take() throws InterruptedException {
        final Monitor monitor = this.monitor;
        monitor.enterWhen(notEmpty);
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

      @CanIgnoreReturnValue // pushed down from class to method
      @Override
      public @Nullable E poll(long timeout, TimeUnit unit) throws InterruptedException {
        final Monitor monitor = this.monitor;
        if (monitor.enterWhen(notEmpty, timeout, unit)) {
          try {
            return q.poll();
          } finally {
            monitor.leave();
          }
        } else {
          return null;
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 07 21:36:32 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top