Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,784 for Condition (0.26 sec)

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

     * evaluation and signaling of conditions. Signaling is entirely <a
     * href="http://en.wikipedia.org/wiki/Monitor_(synchronization)#Implicit_signaling">implicit</a>. By
     * eliminating explicit signaling, this class can guarantee that only one thread is awakened when a
     * condition becomes true (no "signaling storms" due to use of {@link
     * java.util.concurrent.locks.Condition#signalAll Condition.signalAll}) and that no signals are lost
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

       * Causes this thread to call the named method, and asserts that this thread thereby waits on the
       * given condition-like object. The lock-like object must have a method equivalent to {@link
       * java.util.concurrent.locks.ReentrantLock#hasWaiters(java.util.concurrent.locks.Condition)},
       * except that the method parameter must accept whatever condition-like object is passed into this
       * method.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/RelationshipTester.java

            itemInfo,
            unrelatedInfo,
            !equivalence.equivalent(itemInfo.value, unrelatedInfo.value));
      }
    
      private void assertWithTemplate(String template, Item<T> item, Item<T> other, boolean condition) {
        if (!condition) {
          throw new AssertionFailedError(
              template
                  .replace("$RELATIONSHIP", relationshipName)
                  .replace("$HASH", hashName)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        awaitUninterruptibly(latch);
        return thread;
      }
    
      private static class TestCondition implements Condition {
        private final Lock lock;
        private final Condition condition;
    
        private TestCondition(Lock lock, Condition condition) {
          this.lock = lock;
          this.condition = condition;
        }
    
        static TestCondition createAndSignalAfter(long delay, TimeUnit unit) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 31.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        awaitUninterruptibly(latch);
        return thread;
      }
    
      private static class TestCondition implements Condition {
        private final Lock lock;
        private final Condition condition;
    
        private TestCondition(Lock lock, Condition condition) {
          this.lock = lock;
          this.condition = condition;
        }
    
        static TestCondition createAndSignalAfter(long delay, TimeUnit unit) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 30.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/MathPreconditions.java

        }
        return x;
      }
    
      static void checkRoundingUnnecessary(boolean condition) {
        if (!condition) {
          throw new ArithmeticException("mode was UNNECESSARY, but rounding was necessary");
        }
      }
    
      static void checkInRangeForRoundingInputs(boolean condition, double input, RoundingMode mode) {
        if (!condition) {
          throw new ArithmeticException(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

          }
        }
      }
    
      /**
       * Invokes {@code condition.}{@link Condition#await(long, TimeUnit) await(timeout, unit)}
       * uninterruptibly.
       *
       * @since 23.6
       */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public static boolean awaitUninterruptibly(Condition condition, long timeout, TimeUnit unit) {
        boolean interrupted = false;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 14.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/TestThread.java

       * Causes this thread to call the named method, and asserts that this thread thereby waits on the
       * given condition-like object. The lock-like object must have a method equivalent to {@link
       * java.util.concurrent.locks.ReentrantLock#hasWaiters(java.util.concurrent.locks.Condition)},
       * except that the method parameter must accept whatever condition-like object is passed into this
       * method.
       */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ForwardingLock.java

     * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.util.concurrent;
    
    import com.google.common.annotations.J2ktIncompatible;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.locks.Condition;
    import java.util.concurrent.locks.Lock;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/TestOutputStream.java

        throwIf(CLOSE_THROWS);
      }
    
      private void throwIf(TestOption option) throws IOException {
        throwIf(options.contains(option));
      }
    
      private static void throwIf(boolean condition) throws IOException {
        if (condition) {
          throw new IOException();
        }
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.2K bytes
    - Viewed (0)
Back to top