Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for enterWhenUninterruptibly (0.13 sec)

  1. android/guava/src/com/google/common/util/concurrent/AbstractService.java

      @Override
      public final void awaitRunning() {
        monitor.enterWhenUninterruptibly(hasReachedRunning);
        try {
          checkCurrentState(RUNNING);
        } finally {
          monitor.leave();
        }
      }
    
      @Override
      public final void awaitRunning(long timeout, TimeUnit unit) throws TimeoutException {
        if (monitor.enterWhenUninterruptibly(hasReachedRunning, timeout, unit)) {
          try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/AbstractService.java

          } finally {
            monitor.leave();
            dispatchListenerEvents();
          }
        }
        return this;
      }
    
      @Override
      public final void awaitRunning() {
        monitor.enterWhenUninterruptibly(hasReachedRunning);
        try {
          checkCurrentState(RUNNING);
        } finally {
          monitor.leave();
        }
      }
    
      /**
       * @since 28.0
       */
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

          }
        }
    
        void addListener(Listener listener, Executor executor) {
          listeners.addListener(listener, executor);
        }
    
        void awaitHealthy() {
          monitor.enterWhenUninterruptibly(awaitHealthGuard);
          try {
            checkHealthy();
          } finally {
            monitor.leave();
          }
        }
    
        void awaitHealthy(long timeout, TimeUnit unit) throws TimeoutException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java

        return interruptible ? "enterIfInterruptibly" : "enterIf";
      }
    
      private String tryEnterIf() {
        return "tryEnterIf";
      }
    
      private String enterWhen() {
        return interruptible ? "enterWhen" : "enterWhenUninterruptibly";
      }
    
      private String waitFor() {
        return interruptible ? "waitFor" : "waitForUninterruptibly";
      }
    
      private String leave() {
        return "leave";
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/Monitor.java

       * @return whether the monitor was entered, which guarantees that the guard is now satisfied
       * @since 28.0 (but only since 33.4.0 in the Android flavor)
       */
      public boolean enterWhenUninterruptibly(Guard guard, Duration time) {
        return enterWhenUninterruptibly(guard, toNanosSaturated(time), TimeUnit.NANOSECONDS);
      }
    
      /**
       * Enters this monitor when the guard is satisfied. Blocks at most the given time, including both
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 42.8K bytes
    - Viewed (0)
Back to top