Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 667 for wait4 (0.04 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/test/integration/change_test.go

    	// Update CRD and ensure that all watches are gracefully terminated.
    	updateCRD()
    
    	drained := make(chan struct{})
    	go func() {
    		defer close(drained)
    		wg.Wait()
    	}()
    
    	select {
    	case <-drained:
    	case <-time.After(wait.ForeverTestTimeout):
    		t.Fatal("timed out waiting for watchers to be terminated")
    	}
    
    	stopChan := make(chan struct{})
    
    	// Set up loop to modify CRD in the background
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:59:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/runtime/metrics_test.go

    // See issue #60276.
    func TestCPUMetricsSleep(t *testing.T) {
    	if runtime.GOOS == "wasip1" {
    		// Since wasip1 busy-waits in the scheduler, there's no meaningful idle
    		// time. This is accurately reflected in the metrics, but it means this
    		// test is basically meaningless on this platform.
    		t.Skip("wasip1 currently busy-waits in idle time; test not applicable")
    	}
    
    	names := []string{
    		"/cpu/classes/idle:cpu-seconds",
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ConcurrentArchiveIntegrationTest.groovy

                        }
                    }
                }
            """
            when:
            def waiting = server.expectConcurrentAndBlock(3, "wait", "wait", "wait")
    
            def handle = executer.withTasks("extract").start()
            // Wait for all extracters to be ready
            waiting.waitForAllPendingCalls()
    
            def firstExtracter = server.expectAndBlock("extract")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  4. src/os/pidfd_linux_test.go

    	}
    	if err := proc.Signal(os.Kill); err != os.ErrProcessDone {
    		t.Errorf("Signal: got %v, want %v", err, os.ErrProcessDone)
    	}
    	if _, err := proc.Wait(); !errors.Is(err, syscall.ECHILD) {
    		t.Errorf("Wait: got %v, want %v", err, os.ErrProcessDone)
    	}
    	// Release never returns errors on Unix.
    	if err := proc.Release(); err != nil {
    		t.Fatalf("Release: got %v, want <nil>", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. pkg/kubelet/prober/prober_manager_test.go

    		}
    		if exited, _ := condition(); exited {
    			continue // Already exited, no need to poll.
    		}
    		t.Logf("Polling %v", w)
    		if err := wait.Poll(interval, wait.ForeverTestTimeout, condition); err != nil {
    			return err
    		}
    	}
    
    	return nil
    }
    
    // Wait for the given workers to exit & clean up.
    func waitForReadyStatus(t *testing.T, m *manager, ready bool) error {
    	condition := func() (bool, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  6. src/os/pidfd_linux.go

    	handle, status := p.handleTransientAcquire()
    	switch status {
    	case statusDone:
    		// Process already completed Wait, or was not found by
    		// pidfdFind. Return ECHILD for consistency with what the wait
    		// syscall would return.
    		return nil, NewSyscallError("wait", syscall.ECHILD)
    	case statusReleased:
    		return nil, syscall.EINVAL
    	}
    	defer p.handleTransientRelease()
    
    	var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. operator/pkg/util/progress/progress.go

    	comps := make([]string, 0, len(p.components))
    	wait := make([]string, 0, len(p.components))
    	for c, l := range p.components {
    		comps = append(comps, name.UserFacingComponentName(name.ComponentName(c)))
    		wait = append(wait, l.waitingResources()...)
    	}
    	sort.Strings(comps)
    	sort.Strings(wait)
    	msg := fmt.Sprintf(`Processing resources for %s.`, strings.Join(comps, ", "))
    	if len(wait) > 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. src/runtime/lock_futex.go

    	if v == mutex_unlocked {
    		return
    	}
    
    	// wait is either MUTEX_LOCKED or MUTEX_SLEEPING
    	// depending on whether there is a thread sleeping
    	// on this mutex. If we ever change l->key from
    	// MUTEX_SLEEPING to some other value, we must be
    	// careful to change it back to MUTEX_SLEEPING before
    	// returning, to ensure that the sleeping thread gets
    	// its wakeup call.
    	wait := v
    
    	timer := &lockTimer{lock: l}
    	timer.begin()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:34 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/controller.go

    		go func() {
    			defer waitGroup.Done()
    			wait.Until(c.runWorker, time.Second, ctx.Done())
    		}()
    	}
    
    	klog.Infof("Started %v workers for %v", c.options.Workers, c.options.Name)
    
    	// Wait for context cancel.
    	<-ctx.Done()
    
    	// Forcefully shutdown workqueue. Drop any enqueued items.
    	c.queue.ShutDown()
    
    	// Workqueue shutdown signals for workers to stop. Wait for all workers to
    	// clean up
    	waitGroup.Wait()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. pkg/kubelet/pluginmanager/plugin_manager_test.go

    	}
    }
    
    func retryWithExponentialBackOff(initialDuration time.Duration, fn wait.ConditionFunc) error {
    	backoff := wait.Backoff{
    		Duration: initialDuration,
    		Factor:   3,
    		Jitter:   0,
    		Steps:    6,
    	}
    	return wait.ExponentialBackoff(backoff, fn)
    }
    
    func TestPluginRegistration(t *testing.T) {
    	defer cleanup(t)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top