Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for hasWaiters (0.76 sec)

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

        checkNotNull(conditionLikeObject);
        // TODO: Restore the following line when Monitor.hasWaiters() no longer acquires the lock.
        // assertEquals(false, invokeMethod("hasWaiters", conditionLikeObject));
        sendRequest(methodName, conditionLikeObject);
        Thread.sleep(DUE_DILIGENCE_MILLIS);
        assertEquals(true, invokeMethod("hasWaiters", conditionLikeObject));
        assertNull(responseQueue.poll());
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

        checkNotNull(conditionLikeObject);
        // TODO: Restore the following line when Monitor.hasWaiters() no longer acquires the lock.
        // assertEquals(false, invokeMethod("hasWaiters", conditionLikeObject));
        sendRequest(methodName, conditionLikeObject);
        Thread.sleep(DUE_DILIGENCE_MILLIS);
        assertEquals(true, invokeMethod("hasWaiters", conditionLikeObject));
        assertNull(responseQueue.poll());
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

        Monitor monitor1 = new Monitor();
        Monitor monitor2 = new Monitor();
        FlagGuard guard = new FlagGuard(monitor2);
        assertThrows(IllegalMonitorStateException.class, () -> monitor1.hasWaiters(guard));
      }
    
      public void testNullMonitorInGuardConstructorThrowsNPE() {
        assertThrows(NullPointerException.class, () -> new FlagGuard(null));
      }
    
      public void testIsFair() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

        Monitor monitor1 = new Monitor();
        Monitor monitor2 = new Monitor();
        FlagGuard guard = new FlagGuard(monitor2);
        assertThrows(IllegalMonitorStateException.class, () -> monitor1.hasWaiters(guard));
      }
    
      public void testNullMonitorInGuardConstructorThrowsNPE() {
        assertThrows(NullPointerException.class, () -> new FlagGuard(null));
      }
    
      public void testIsFair() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/Monitor.java

       * and leaves, calling signalNextWaiter. With traditional locks and conditions, all the conditions
       * need to be signalled because it is not known which if any of them have waiters (and hasWaiters
       * can't be used reliably because of a check-then-act race). With our Monitor guards, we only
       * signal the first active guard that is satisfied. But the corresponding thread may have already
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

       */
      private boolean casWaiters(@Nullable Waiter expect, @Nullable Waiter update) {
        return ATOMIC_HELPER.casWaiters(this, expect, update);
      }
    
      /**
       * Performs a {@linkplain java.lang.invoke.VarHandle#getAndSet get-and-set} operation on {@link
       * #waitersField}.
       */
      private final @Nullable Waiter gasWaiters(Waiter update) {
        return ATOMIC_HELPER.gasWaiters(this, update);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

       */
      private boolean casWaiters(@Nullable Waiter expect, @Nullable Waiter update) {
        return ATOMIC_HELPER.casWaiters(this, expect, update);
      }
    
      /**
       * Performs a {@linkplain java.lang.invoke.VarHandle#getAndSet get-and-set} operation on {@link
       * #waitersField}.
       */
      private final @Nullable Waiter gasWaiters(Waiter update) {
        return ATOMIC_HELPER.gasWaiters(this, update);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.2K bytes
    - Viewed (0)
Back to top