Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for crBlock (0.25 sec)

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

    	startBucketID     int64
    	clock             clock.Clock
    	bookmarkFrequency time.Duration
    }
    
    func newTimeBucketWatchers(clock clock.Clock, bookmarkFrequency time.Duration) *watcherBookmarkTimeBuckets {
    	return &watcherBookmarkTimeBuckets{
    		watchersBuckets:   make(map[int64][]*cacheWatcher),
    		createTime:        clock.Now(),
    		startBucketID:     0,
    		clock:             clock,
    		bookmarkFrequency: bookmarkFrequency,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  2. pkg/scheduler/internal/queue/scheduling_queue.go

    }
    
    // Option configures a PriorityQueue
    type Option func(*priorityQueueOptions)
    
    // WithClock sets clock for PriorityQueue, the default clock is clock.RealClock.
    func WithClock(clock clock.Clock) Option {
    	return func(o *priorityQueueOptions) {
    		o.clock = clock
    	}
    }
    
    // WithPodInitialBackoffDuration sets pod initial backoff duration for PriorityQueue.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  3. src/time/time.go

    //
    // Operating systems provide both a “wall clock,” which is subject to
    // changes for clock synchronization, and a “monotonic clock,” which is
    // not. The general rule is that the wall clock is for telling time and
    // the monotonic clock is for measuring time. Rather than split the API,
    // in this package the Time returned by [time.Now] contains both a wall
    // clock reading and a monotonic clock reading; later time-telling
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  4. pkg/volume/testing/testing.go

    	return plugin.NewAttacher()
    }
    
    func (plugin *FakeVolumePlugin) GetAttachers() (Attachers []*FakeVolume) {
    	plugin.RLock()
    	defer plugin.RUnlock()
    	return plugin.Attachers
    }
    
    func (plugin *FakeVolumePlugin) GetNewAttacherCallCount() int {
    	plugin.RLock()
    	defer plugin.RUnlock()
    	return plugin.NewAttacherCallCount
    }
    
    func (plugin *FakeVolumePlugin) NewDetacher() (volume.Detacher, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  5. pkg/controller/job/job_controller.go

    		orphanQueue:           workqueue.NewTypedRateLimitingQueueWithConfig(workqueue.NewTypedItemExponentialFailureRateLimiter[string](DefaultJobApiBackOff, MaxJobApiBackOff), workqueue.TypedRateLimitingQueueConfig[string]{Name: "job_orphan_pod", Clock: clock}),
    		broadcaster:           eventBroadcaster,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    	etcd3testing "k8s.io/apiserver/pkg/storage/etcd3/testing"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	"k8s.io/utils/clock"
    	testingclock "k8s.io/utils/clock/testing"
    	"k8s.io/utils/pointer"
    )
    
    func newTestCacherWithoutSyncing(s storage.Interface) (*Cacher, storage.Versioner, error) {
    	prefix := "pods"
    	config := Config{
    		Storage:        s,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  7. cmd/iam-store.go

    	cache := store.rlock()
    	defer store.runlock()
    
    	u, ok := cache.iamUsersMap[user]
    	if !ok {
    		// Check the sts map
    		u, ok = cache.iamSTSAccountsMap[user]
    	}
    	return u, ok
    }
    
    // GetMappedPolicy - fetches mapped policy from memory.
    func (store *IAMStoreSys) GetMappedPolicy(name string, isGroup bool) (MappedPolicy, bool) {
    	cache := store.rlock()
    	defer store.runlock()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  8. pkg/kubelet/pod_workers_test.go

    func (w *timeIncrementingWorkers) tick() {
    	w.lock.Lock()
    	defer w.lock.Unlock()
    	w.w.clock.(*clocktesting.FakePassiveClock).SetTime(w.w.clock.Now().Add(time.Second))
    }
    
    // createTimeIncrementingPodWorkers will guarantee that each call to UpdatePod and each worker goroutine invocation advances the clock by one second,
    // although multiple workers will advance the clock in an unpredictable order. Use to observe
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  9. pkg/kubelet/pod_workers.go

    	// resyncInterval is the duration to wait until the next sync.
    	resyncInterval time.Duration
    
    	// podCache stores kubecontainer.PodStatus for all pods.
    	podCache kubecontainer.Cache
    
    	// clock is used for testing timing
    	clock clock.PassiveClock
    }
    
    func newPodWorkers(
    	podSyncer podSyncer,
    	recorder record.EventRecorder,
    	workQueue queue.WorkQueue,
    	resyncInterval, backOffPeriod time.Duration,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 13:22:37 UTC 2024
    - 74.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/regalloc.go

    		}
    		s.usedSinceBlockStart |= regMask(1) << r2
    		c = s.curBlock.NewValue1(pos, OpCopy, v.Type, s.regs[r2].c)
    	} else if v.rematerializeable() {
    		// Rematerialize instead of loading from the spill location.
    		c = v.copyIntoWithXPos(s.curBlock, pos)
    	} else {
    		// Load v from its spill location.
    		spill := s.makeSpill(v, s.curBlock)
    		if s.f.pass.debug > logSpills {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:49:56 UTC 2023
    - 87.2K bytes
    - Viewed (0)
Back to top