Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for stopCh (0.18 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_progress.go

    	cond    *sync.Cond
    	waiting int
    	stopped bool
    }
    
    func (pr *conditionalProgressRequester) Run(stopCh <-chan struct{}) {
    	ctx := wait.ContextForChannel(stopCh)
    	if pr.contextMetadata != nil {
    		ctx = metadata.NewOutgoingContext(ctx, pr.contextMetadata)
    	}
    	go func() {
    		defer utilruntime.HandleCrash()
    		<-stopCh
    		pr.mux.Lock()
    		defer pr.mux.Unlock()
    		pr.stopped = true
    		pr.cond.Signal()
    	}()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 09:56:38 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. pkg/revisions/tag_watcher.go

    			}
    			return []string{rev}
    		}, controllers.ObjectHandler(p.queue.AddObject))
    	return p
    }
    
    func (p *tagWatcher) Run(stopCh <-chan struct{}) {
    	if !kube.WaitForCacheSync("tag watcher", stopCh, p.webhooks.HasSynced) {
    		return
    	}
    	// Notify handlers of initial state
    	p.notifyHandlers()
    	p.queue.Run(stopCh)
    }
    
    // AddHandler registers a new handler for updates to tag changes.
    func (p *tagWatcher) AddHandler(handler TagHandler) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/reconciler/reconciler.go

    */
    
    package reconciler
    
    import (
    	"k8s.io/apimachinery/pkg/util/wait"
    	"k8s.io/klog/v2"
    )
    
    func (rc *reconciler) Run(stopCh <-chan struct{}) {
    	rc.reconstructVolumes()
    	klog.InfoS("Reconciler: start to sync state")
    	wait.Until(rc.reconcile, rc.loopSleepDuration, stopCh)
    }
    
    func (rc *reconciler) reconcile() {
    	readyToUnmount := rc.readyToUnmount()
    	if readyToUnmount {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/watch/watch.go

    func (pw *ProxyWatcher) StopChan() <-chan struct{} {
    	return pw.stopCh
    }
    
    // MockWatcher implements watch.Interface with mockable functions.
    type MockWatcher struct {
    	StopFunc       func()
    	ResultChanFunc func() <-chan Event
    }
    
    var _ Interface = &MockWatcher{}
    
    // Stop calls StopFunc
    func (mw MockWatcher) Stop() {
    	mw.StopFunc()
    }
    
    // ResultChan calls ResultChanFunc
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 20:06:22 UTC 2024
    - 8.1K bytes
    - Viewed (1)
  5. staging/src/k8s.io/apiserver/pkg/server/healthz.go

    // that we can register that the api-server is no longer ready while we attempt to gracefully
    // shutdown.
    func (s *GenericAPIServer) addReadyzShutdownCheck(stopCh <-chan struct{}) error {
    	return s.AddReadyzChecks(healthz.NewShutdownHealthz(stopCh))
    }
    
    // installHealthz creates the healthz endpoint for this server
    func (s *GenericAPIServer) installHealthz() {
    	s.healthzRegistry.installHandler(s.Handler.NonGoRestfulMux)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/options/admission.go

    	admissionPostStartHook := func(context server.PostStartHookContext) error {
    		discoveryRESTMapper.Reset()
    		go utilwait.Until(discoveryRESTMapper.Reset, 30*time.Second, context.StopCh)
    		return nil
    	}
    
    	err = c.AddPostStartHook("start-apiserver-admission-initializer", admissionPostStartHook)
    	if err != nil {
    		return fmt.Errorf("failed to add post start hook for policy admission: %w", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 12 08:49:42 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. src/internal/trace/testdata/testprog/stress-start-stop.go

    			w = os.Stdout
    		} else {
    			w = new(bytes.Buffer)
    		}
    		if err := trace.Start(w); err != nil {
    			log.Fatalf("failed to start tracing: %v", err)
    		}
    		time.Sleep(time.Millisecond)
    		trace.Stop()
    	}
    	<-outerDone
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. src/internal/trace/testdata/testprog/many-start-stop.go

    			log.Fatalf("failed to start tracing: %v", err)
    		}
    		runtime.GC()
    		trace.Stop()
    	}
    
    	// Start tracing again, this time writing out the result.
    	if err := trace.Start(os.Stdout); err != nil {
    		log.Fatalf("failed to start tracing: %v", err)
    	}
    	runtime.GC()
    	trace.Stop()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 786 bytes
    - Viewed (0)
  9. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/actor/internal/DefaultActorFactory.java

            this.executorFactory = executorFactory;
        }
    
        /**
         * Stops all actors.
         */
        @Override
        public void stop() {
            synchronized (lock) {
                try {
                    CompositeStoppable.stoppable(nonBlockingActors.values()).add(blockingActors.values()).stop();
                } finally {
                    nonBlockingActors.clear();
                }
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/WorkerDaemonClientCancellationHandler.java

    import org.gradle.internal.service.scopes.Scope;
    import org.gradle.internal.service.scopes.ServiceScope;
    
    import java.util.concurrent.atomic.AtomicBoolean;
    
    /**
     * A handler that stops all worker daemons when the build is cancelled.
     */
    @ServiceScope(Scope.BuildSession.class)
    @NonNullApi
    public class WorkerDaemonClientCancellationHandler implements Stoppable {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:57:50 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top