Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for waitForUninterruptibly (0.44 sec)

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

          } finally {
            monitor.leave();
          }
        }
    
        void awaitHealthy(long timeout, TimeUnit unit) throws TimeoutException {
          monitor.enter();
          try {
            if (!monitor.waitForUninterruptibly(awaitHealthGuard, timeout, unit)) {
              throw new TimeoutException(
                  "Timeout waiting for the services to become healthy. The "
                      + "following services have not started: "
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java

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

       *
       * @return whether the guard is now satisfied
       * @since 28.0 (but only since 33.4.0 in the Android flavor)
       */
      public boolean waitForUninterruptibly(Guard guard, Duration time) {
        return waitForUninterruptibly(guard, toNanosSaturated(time), TimeUnit.NANOSECONDS);
      }
    
      /**
       * Waits for the guard to be satisfied. Waits at most the given time. May be called only by a
    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