- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for workFunc (0.15 sec)
-
pkg/controller/tainteviction/timed_workers.go
return &TimedWorkerQueue{ workers: make(map[string]*TimedWorker), workFunc: f, clock: clock.RealClock{}, } } func (q *TimedWorkerQueue) getWrappedWorkerFunc(key string) func(ctx context.Context, fireAt time.Time, args *WorkArgs) error { return func(ctx context.Context, fireAt time.Time, args *WorkArgs) error { err := q.workFunc(ctx, fireAt, args) q.Lock() defer q.Unlock() if err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:23:56 UTC 2023 - 4.8K bytes - Viewed (0) -
pkg/controller/namespace/namespace_controller.go
// Each namespace can be in the queue at most once. // The system ensures that no two workers can process // the same namespace at the same time. func (nm *NamespaceController) worker(ctx context.Context) { workFunc := func(ctx context.Context) bool { key, quit := nm.queue.Get() if quit { return true } defer nm.queue.Done(key) err := nm.syncNamespaceFromKey(ctx, key) if err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 7.6K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/pv_controller_base.go
return false } for { if quit := workFunc(ctx); quit { logger.Info("Volume worker queue shutting down") return } } } // claimWorker processes items from claimQueue. It must run only once, // syncClaim is not reentrant. func (ctrl *PersistentVolumeController) claimWorker(ctx context.Context) { logger := klog.FromContext(ctx) workFunc := func() bool { key, quit := ctrl.claimQueue.Get()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 08:42:31 UTC 2024 - 29.5K bytes - Viewed (0) -
pkg/controller/resourcequota/resource_quota_controller.go
} // worker runs a worker thread that just dequeues items, processes them, and marks them done. func (rq *Controller) worker(queue workqueue.TypedRateLimitingInterface[string]) func(context.Context) { workFunc := func(ctx context.Context) bool { key, quit := queue.Get() if quit { return true } defer queue.Done(key) rq.workerLock.RLock() defer rq.workerLock.RUnlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 21.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/controller.go
} func (e *quotaEvaluator) doWork() { workFunc := func() bool { ns, admissionAttributes, quit := e.getWork() if quit { return true } defer e.completeWork(ns) if len(admissionAttributes) == 0 { return false } e.checkAttributes(ns, admissionAttributes) return false } for { if quit := workFunc(); quit { klog.Infof("quota evaluator worker shutdown")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 25.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go
requestedFieldSelector fields.Selector requestedResourceVersion string requestedResourceNamespace string expectedResourceNamespace string // If non-nil, called inside the WorkFunc when answering update, delete, create. // obj receives the original input to the update, delete, or create call. injectedFunction func(obj runtime.Object) (returnObj runtime.Object, err error) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 20:15:22 UTC 2023 - 158.7K bytes - Viewed (0) -
tensorflow/c/env.h
TF_CAPI_EXPORT extern void TF_DefaultThreadOptions(TF_ThreadOptions* options); // Returns a new thread that is running work_func and is identified // (for debugging/performance-analysis) by thread_name. // // The given param (which may be null) is passed to work_func when the thread // starts. In this way, data may be passed from the thread back to the caller. //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jan 09 02:53:27 UTC 2021 - 9.6K bytes - Viewed (0) -
tensorflow/c/env.cc
options->stack_size = 0; options->guard_size = 0; options->numa_node = -1; } TF_Thread* TF_StartThread(const TF_ThreadOptions* options, const char* thread_name, void (*work_func)(void*), void* param) { ::tensorflow::ThreadOptions cc_options; cc_options.stack_size = options->stack_size; cc_options.guard_size = options->guard_size;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 7K bytes - Viewed (0)