Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for HasWaiters (0.41 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_progress_test.go

    	pr := newTestConditionalProgressRequester(clock)
    	stopCh := make(chan struct{})
    	go pr.Run(stopCh)
    	var wantRequestsSent int32
    	var requestsSent int32
    
    	logger.Info("Wait for ticker to be created")
    	for !clock.HasWaiters() {
    		time.Sleep(pollPeriod)
    	}
    
    	logger.Info("No progress requests if no-one is waiting")
    	clock.Step(progressRequestPeriod * 2)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 11:51:06 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    			defer store.Stop()
    			fc := store.clock.(*testingclock.FakeClock)
    
    			// In background, step clock after the below call starts the timer.
    			go func() {
    				for !fc.HasWaiters() {
    					time.Sleep(time.Millisecond)
    				}
    				store.Add(makeTestPod("foo", 2))
    				store.bookmarkRevision <- 3
    				fc.Step(blockTimeout)
    
    				// Add an object to make sure the test would
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

        }
    
        /** Performs a GAS operation on the {@link #waiters} field. */
        @Override
        Waiter gasWaiters(AbstractFuture<?> future, Waiter update) {
          while (true) {
            Waiter waiter = future.waiters;
            if (update == waiter) {
              return waiter;
            }
            if (casWaiters(future, waiter, update)) {
              return waiter;
            }
          }
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 63.1K bytes
    - Viewed (1)
  6. guava/src/com/google/common/util/concurrent/AbstractFuture.java

              pred.next = succ;
              if (pred.thread == null) { // We raced with another node that unlinked pred. Restart.
                continue restart;
              }
            } else if (!ATOMIC_HELPER.casWaiters(this, curr, succ)) { // We are unlinking head
              continue restart; // We raced with an add or complete
            }
            curr = succ;
          }
          break;
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 62.8K bytes
    - Viewed (1)
Back to top