Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 62 for goroutines (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    	var executed1, idle1 bool
    	counter.Add(1) // account for the following goroutine
    	go func() {
    		defer counter.Add(-1) // account completion of this goroutine
    		idle1 = req1.Finish(func() {
    			executed1 = true
    			ctx2, cancel2 := context.WithCancel(context.Background())
    			tBefore := clk.Now()
    			counter.Add(1) // account for the following goroutine
    			go func() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  2. pkg/controller/volume/persistentvolume/pv_controller.go

    	// "xxx added/updated/deleted" events from etcd and by the controller when
    	// it saves newer version to etcd.
    	// Why local cache: binding a volume to a claim generates 4 events, roughly
    	// in this order (depends on goroutine ordering):
    	// - volume.Spec update
    	// - volume.Status update
    	// - claim.Spec update
    	// - claim.Status update
    	// With these caches, the controller can check that it has already saved
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 89.2K bytes
    - Viewed (0)
  3. src/runtime/malloc.go

    // weight allocation. If it is a heavy weight allocation the caller must
    // determine whether a new GC cycle needs to be started or if the GC is active
    // whether this goroutine needs to assist the GC.
    //
    // Must run in a non-preemptible context since otherwise the owner of
    // c could change.
    func (c *mcache) nextFree(spc spanClass) (v gclinkptr, s *mspan, shouldhelpgc bool) {
    	s = c.alloc[spc]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  4. src/crypto/tls/tls_test.go

    	go func() {
    		buf := make([]byte, bufsize)
    		for i := 0; i < N; i++ {
    			sconn, err := ln.Accept()
    			if err != nil {
    				// panic rather than synchronize to avoid benchmark overhead
    				// (cannot call b.Fatal in goroutine)
    				panic(fmt.Errorf("accept: %v", err))
    			}
    			serverConfig := testConfig.Clone()
    			serverConfig.CipherSuites = nil // the defaults may prefer faster ciphers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  5. src/runtime/mbitmap.go

    // in which the pointer p was found and the byte offset at which it
    // was found. These are used for error reporting.
    //
    // It is nosplit so it is safe for p to be a pointer to the current goroutine's stack.
    // Since p is a uintptr, it would not be adjusted if the stack were to move.
    //
    // findObject should be an internal detail,
    // but widely used packages access it using linkname.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    	workersExited := make(chan struct{})
    
    	wg.Add(workersNumber)
    	for i := 0; i < workersNumber; i++ {
    		go func() {
    			// panics don't cross goroutine boundaries
    			defer utilruntime.HandleCrash(func(panicReason interface{}) {
    				errs <- fmt.Errorf("DeleteCollection goroutine panicked: %v", panicReason)
    			})
    			defer wg.Done()
    
    			for item := range toProcess {
    				accessor, err := meta.Accessor(item)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 23:22:44 UTC 2024
    - 60.8K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool.go

    		g.Go(func() error {
    			// Get the set where it would be placed.
    			storageInfos[index] = getDiskInfos(ctx, pool.getHashedSet(object).getDisks()...)
    			return nil
    		}, index)
    	}
    
    	// Wait for the go routines.
    	g.Wait()
    
    	for i, zinfo := range storageInfos {
    		if zinfo == nil {
    			serverPools[i] = poolAvailableSpace{Index: i}
    			continue
    		}
    		var available uint64
    		if !isMinioMetaBucketName(bucket) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 82.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go

    	for _, crdInfo := range storageMap {
    		for _, storage := range crdInfo.storages {
    			// DestroyFunc have to be implemented in idempotent way,
    			// so the potential race with r.tearDown() (being called
    			// from a goroutine) is safe.
    			storage.CustomResource.DestroyFunc()
    		}
    	}
    }
    
    // GetCustomResourceListerCollectionDeleter returns the ListerCollectionDeleter of
    // the given crd.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  9. pkg/proxy/winkernel/proxier.go

    		proxier.healthzServer.QueuedUpdate(proxier.ipFamily)
    	}
    	metrics.SyncProxyRulesLastQueuedTimestamp.SetToCurrentTime()
    	proxier.syncRunner.Run()
    }
    
    // SyncLoop runs periodic work.  This is expected to run as a goroutine or as the main loop of the app.  It does not return.
    func (proxier *Proxier) SyncLoop() {
    	// Update healthz timestamp at beginning in case Sync() never succeeds.
    	if proxier.healthzServer != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 59K bytes
    - Viewed (0)
  10. pkg/proxy/nftables/proxier.go

    		proxier.healthzServer.QueuedUpdate(proxier.ipFamily)
    	}
    	metrics.SyncProxyRulesLastQueuedTimestamp.SetToCurrentTime()
    	proxier.syncRunner.Run()
    }
    
    // SyncLoop runs periodic work.  This is expected to run as a goroutine or as the main loop of the app.  It does not return.
    func (proxier *Proxier) SyncLoop() {
    	// Update healthz timestamp at beginning in case Sync() never succeeds.
    	if proxier.healthzServer != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 55.5K bytes
    - Viewed (0)
Back to top