Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for drain1 (0.18 sec)

  1. src/time/tick_test.go

    			return
    		}
    
    		// async timers can send one stale value (then the timer is disabled).
    		drain1()
    		if isTicker {
    			// async tickers can send two stale values: there may be one
    			// sitting in the channel buffer, and there may also be one
    			// send racing with the Reset/Stop+drain that arrives after
    			// the first drain1 has pulled the value out.
    			// This is rare, but it does happen on overloaded builder machines.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Queues.java

         */
        long deadline = System.nanoTime() + unit.toNanos(timeout);
        int added = 0;
        while (added < numElements) {
          // we could rely solely on #poll, but #drainTo might be more efficient when there are multiple
          // elements already available (e.g. LinkedBlockingQueue#drainTo locks only once)
          added += q.drainTo(buffer, numElements - added);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 18K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Queues.java

         */
        long deadline = System.nanoTime() + unit.toNanos(timeout);
        int added = 0;
        while (added < numElements) {
          // we could rely solely on #poll, but #drainTo might be more efficient when there are multiple
          // elements already available (e.g. LinkedBlockingQueue#drainTo locks only once)
          added += q.drainTo(buffer, numElements - added);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/QueuesTest.java

          assertEquals(0, Queues.drain(q, ImmutableList.of(), 1, 10, MILLISECONDS));
    
          Producer producer = new Producer(q, 1);
          // producing one, will ask for two
          Future<?> producerThread = threadPool.submit(producer);
          producer.beganProducing.await();
    
          // make sure we time out
          Stopwatch timer = Stopwatch.createStarted();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 12K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/QueuesTest.java

          assertEquals(0, Queues.drain(q, ImmutableList.of(), 1, 10, MILLISECONDS));
    
          Producer producer = new Producer(q, 1);
          // producing one, will ask for two
          Future<?> producerThread = threadPool.submit(producer);
          producer.beganProducing.await();
    
          // make sure we time out
          Stopwatch timer = Stopwatch.createStarted();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 12K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/genericapiserver.go

    	// ShutdownWatchTerminationGracePeriod, if set to a positive value,
    	// is the maximum duration the apiserver will wait for all active
    	// watch request(s) to drain.
    	// Once this grace period elapses, the apiserver will no longer
    	// wait for any active watch request(s) in flight to drain, it will
    	// proceed to the next step in the graceful server shutdown process.
    	// If set to a positive value, the apiserver will keep track of the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 42.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/options/server_run_options.go

    	// ShutdownWatchTerminationGracePeriod, if set to a positive value,
    	// is the maximum duration the apiserver will wait for all active
    	// watch request(s) to drain.
    	// Once this grace period elapses, the apiserver will no longer
    	// wait for any active watch request(s) in flight to drain, it will
    	// proceed to the next step in the graceful server shutdown process.
    	// If set to a positive value, the apiserver will keep track of the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 21:53:51 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  8. src/runtime/mgclimit.go

    // where it might become excessive and inhibit application progress (e.g.
    // a death spiral).
    //
    // The core of the limiter is a leaky bucket mechanism that fills with GC
    // CPU time and drains with mutator time. Because the bucket fills and
    // drains with time directly (i.e. without any weighting), this effectively
    // sets a very conservative limit of 50%. This limit could be enforced directly,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 22:07:41 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/wait/backoff.go

    	// safe for use from multiple threads. It returns a timer for backoff, and caller shall backoff
    	// until Timer.C() drains. If the second Backoff() is called before the timer from the first
    	// Backoff() call finishes, the first timer will NOT be drained and result in undetermined
    	// behavior.
    	Backoff() clock.Timer
    }
    
    // Deprecated: Will be removed when the legacy polling functions are removed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  10. internal/logger/target/http/http.go

    			select {
    			case currentGlobalBuffer <- v:
    			default:
    			}
    		}
    
    		if mainWorker {
    		drain:
    			for {
    				select {
    				case v, ok := <-h.logCh:
    					if !ok {
    						break drain
    					}
    
    					currentGlobalBuffer <- v
    				default:
    					break drain
    				}
    			}
    		}
    	}()
    
    	var entry interface{}
    	var ok bool
    	var err error
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top