Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,355 for nwait (0.05 sec)

  1. src/runtime/sema.go

    	}
    	for {
    		lockWithRank(&root.lock, lockRankRoot)
    		// Add ourselves to nwait to disable "easy case" in semrelease.
    		root.nwait.Add(1)
    		// Check cansemacquire to avoid missed wakeup.
    		if cansemacquire(addr) {
    			root.nwait.Add(-1)
    			unlock(&root.lock)
    			break
    		}
    		// Any semrelease after the cansemacquire knows we're waiting
    		// (we set nwait above), so go to sleep.
    		root.queue(addr, s, lifo)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/runtime/mgc.go

    	// will be, so we pretend to have an arbitrarily large number
    	// of workers, almost all of which are "waiting". While a
    	// worker is working it decrements nwait. If nproc == nwait,
    	// there are no workers.
    	work.nproc = ^uint32(0)
    	work.nwait = ^uint32(0)
    }
    
    // gcBgMarkWorkerNode is an entry in the gcBgMarkWorkerPool. It points to a single
    // gcBgMarkWorker goroutine.
    type gcBgMarkWorkerNode struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  3. src/runtime/mgcmark.go

    	startTime := nanotime()
    	trackLimiterEvent := gp.m.p.ptr().limiterEvent.start(limiterEventMarkAssist, startTime)
    
    	decnwait := atomic.Xadd(&work.nwait, -1)
    	if decnwait == work.nproc {
    		println("runtime: work.nwait =", decnwait, "work.nproc=", work.nproc)
    		throw("nwait > work.nprocs")
    	}
    
    	// gcDrainN requires the caller to be preemptible.
    	casGToWaitingForGC(gp, _Grunning, waitReasonGCAssistMarking)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  4. src/runtime/export_test.go

    	return &root.lock
    }
    
    var Semacquire = semacquire
    var Semrelease1 = semrelease1
    
    func SemNwait(addr *uint32) uint32 {
    	root := semtable.rootFor(addr)
    	return root.nwait.Load()
    }
    
    const SemTableSize = semTabSize
    
    // SemTable is a wrapper around semTable exported for testing.
    type SemTable struct {
    	semTable
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  5. istioctl/pkg/wait/wait.go

      istioctl experimental wait --for=distribution virtualservice bookinfo.default
    
      # Wait until the bookinfo virtual service has been distributed to a specific proxy
      istioctl experimental wait --for=distribution virtualservice bookinfo.default --proxy workload-instance.namespace
    
      # Wait until 99% of the proxies receive the distribution, timing out after 5 minutes
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Feb 17 12:24:17 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go

    // NeverStop may be passed to Until to make it never stop.
    var NeverStop <-chan struct{} = make(chan struct{})
    
    // Group allows to start a group of goroutines and wait for their completion.
    type Group struct {
    	wg sync.WaitGroup
    }
    
    func (g *Group) Wait() {
    	g.wg.Wait()
    }
    
    // StartWithChannel starts f in a new goroutine in the group.
    // stopCh is passed to f as an argument. f should stop when stopCh is available.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  7. operator/pkg/helmreconciler/wait.go

    	"k8s.io/apimachinery/pkg/labels"
    	"k8s.io/apimachinery/pkg/util/wait"
    	"k8s.io/client-go/kubernetes"
    	kctldeployment "k8s.io/kubectl/pkg/util/deployment"
    
    	"istio.io/istio/operator/pkg/name"
    	"istio.io/istio/operator/pkg/object"
    	"istio.io/istio/operator/pkg/util/progress"
    	"istio.io/istio/pkg/kube"
    )
    
    const (
    	// defaultWaitResourceTimeout is the maximum wait time for all resources(namespace/deployment/pod) to be created.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 08 03:13:12 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  8. pilot/cmd/pilot-agent/app/wait.go

    	waitCmd.PersistentFlags().IntVar(&timeoutSeconds, "timeoutSeconds", 60, "maximum number of seconds to wait for Envoy to be ready")
    	waitCmd.PersistentFlags().IntVar(&requestTimeoutMillis, "requestTimeoutMillis", 500, "number of milliseconds to wait for response")
    	waitCmd.PersistentFlags().IntVar(&periodMillis, "periodMillis", 500, "number of milliseconds to wait between attempts")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/util/apiclient/wait.go

    	return nil
    }
    
    // WaitForPodsWithLabel will lookup pods with the given label and wait until they are all
    // reporting status as running.
    func (w *KubeWaiter) WaitForPodsWithLabel(kvLabel string) error {
    
    	lastKnownPodNumber := -1
    	return wait.PollUntilContextTimeout(context.Background(),
    		constants.KubernetesAPICallRetryInterval, w.timeout,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. src/internal/trace/testdata/testprog/wait-on-pipe.go

    	time.Sleep(100 * time.Millisecond)
    
    	// Write to the pipe to unblock it.
    	if _, err := syscall.Write(wfd, []byte{10}); err != nil {
    		log.Fatalf("failed to write to pipe: %v", err)
    	}
    
    	// Wait for the goroutine to unblock and start running.
    	// This is helpful to catch incorrect information written
    	// down for the syscall-blocked goroutine, since it'll start
    	// executing, and that execution information will be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top