Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CheckedRunnable (0.1 sec)

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

          delay(SHORT_DELAY_MS);
        }
      }
    
      public class SmallRunnable extends CheckedRunnable {
        @Override
        protected void realRun() throws Throwable {
          delay(SMALL_DELAY_MS);
        }
      }
    
      public class SmallPossiblyInterruptedRunnable extends CheckedRunnable {
        @Override
        protected void realRun() {
          try {
            delay(SMALL_DELAY_MS);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          delay(SHORT_DELAY_MS);
        }
      }
    
      public class SmallRunnable extends CheckedRunnable {
        @Override
        protected void realRun() throws Throwable {
          delay(SMALL_DELAY_MS);
        }
      }
    
      public class SmallPossiblyInterruptedRunnable extends CheckedRunnable {
        @Override
        protected void realRun() {
          try {
            delay(SMALL_DELAY_MS);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

      public void testCompareAndSetInMultipleThreads() throws Exception {
        final AtomicDouble at = new AtomicDouble(1.0);
        Thread t =
            newStartedThread(
                new CheckedRunnable() {
                  @Override
                  @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races
                  public void realRun() {
                    while (!at.compareAndSet(2.0, 3.0)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

      public void testCompareAndSetInMultipleThreads() throws InterruptedException {
        final AtomicDoubleArray a = new AtomicDoubleArray(1);
        a.set(0, 1.0);
        Thread t =
            newStartedThread(
                new CheckedRunnable() {
                  @Override
                  @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races
                  public void realRun() {
                    while (!a.compareAndSet(0, 2.0, 3.0)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top