- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 1,091 for unlock2 (0.31 sec)
-
pkg/kubelet/container/testing/fake_runtime.go
f.Lock() defer f.Unlock() return f.assertList(pods, f.StartedPods) } func (f *FakeRuntime) AssertKilledPods(pods []string) bool { f.Lock() defer f.Unlock() return f.assertList(pods, f.KilledPods) } func (f *FakeRuntime) AssertStartedContainers(containers []string) bool { f.Lock() defer f.Unlock() return f.assertList(containers, f.StartedContainers) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 14 00:23:50 UTC 2024 - 13.9K bytes - Viewed (0) -
pkg/scheduler/util/assumecache/assume_cache.go
c.rwMutex.RLock() defer c.rwMutex.RUnlock() objInfo, err := c.getObjInfo(key) if err != nil { return nil, err } return objInfo.latestObj, nil } // GetAPIObj gets the informer cache's version by its key. func (c *AssumeCache) GetAPIObj(key string) (interface{}, error) { c.rwMutex.RLock() defer c.rwMutex.RUnlock() objInfo, err := c.getObjInfo(key) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 09:46:58 UTC 2024 - 10.6K bytes - Viewed (0) -
pkg/test/framework/components/istio/configmap.go
ic.mu.Lock() ic.injectConfig = myic ic.mu.Unlock() } return myic, nil } func (ic *injectConfig) UpdateInjectionConfig(t resource.Context, update func(*inject.Config) error, cleanupStrategy cleanup.Strategy) error { // Invalidate the member variable. The next time it's requested, it will get a fresh value. ic.mu.Lock() ic.injectConfig = nil ic.mu.Unlock() errG := multierror.Group{}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 12.8K bytes - Viewed (0) -
internal/config/callhome/callhome.go
// Enabled - indicates if callhome is enabled or not func (c *Config) Enabled() bool { configLock.RLock() defer configLock.RUnlock() return c.Enable } // FrequencyDur - returns the currently configured callhome frequency func (c *Config) FrequencyDur() time.Duration { configLock.RLock() defer configLock.RUnlock() if c.Frequency == 0 { return callhomeCycleDefault } return c.Frequency }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 2.6K bytes - Viewed (0) -
pkg/scheduler/internal/cache/cache.go
} cache.mu.RLock() defer cache.mu.RUnlock() podState, ok := cache.podStates[key] if !ok { return nil, fmt.Errorf("pod %v(%v) does not exist in scheduler cache", key, klog.KObj(pod)) } return podState.pod, nil } func (cache *cacheImpl) AddNode(logger klog.Logger, node *v1.Node) *framework.NodeInfo { cache.mu.Lock() defer cache.mu.Unlock() n, ok := cache.nodes[node.Name] if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 24 09:56:48 UTC 2023 - 24.9K bytes - Viewed (0) -
internal/pubsub/pubsub.go
} ps.Lock() defer ps.Unlock() sub := &Sub[T]{ch: subCh, types: Mask(mask.Mask()), filter: filter} ps.subs = append(ps.subs, sub) // We hold a lock, so we are safe to update combined := Mask(atomic.LoadUint64(&ps.types)) combined.Merge(Mask(mask.Mask())) atomic.StoreUint64(&ps.types, uint64(combined)) go func() { <-doneCh ps.Lock() defer ps.Unlock() var remainTypes Mask
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Feb 06 16:57:30 UTC 2024 - 5.2K bytes - Viewed (0) -
pkg/kube/kclient/index.go
AddFunc: func(obj any, initialList bool) { idx.mu.Lock() addObj(obj) idx.mu.Unlock() if delegate != nil { delegate.OnAdd(obj, initialList) } }, UpdateFunc: func(oldObj, newObj any) { idx.mu.Lock() deleteObj(oldObj) addObj(newObj) idx.mu.Unlock() if delegate != nil { delegate.OnUpdate(oldObj, newObj) } }, DeleteFunc: func(obj any) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 04 03:49:30 UTC 2023 - 3.5K bytes - Viewed (0) -
src/text/template/template.go
if t.common == nil { return nt, nil } t.muTmpl.RLock() defer t.muTmpl.RUnlock() for k, v := range t.tmpl { if k == t.name { nt.tmpl[t.name] = nt continue } // The associated templates share nt's common structure. tmpl := v.copy(nt.common) nt.tmpl[k] = tmpl } t.muFuncs.RLock() defer t.muFuncs.RUnlock() for k, v := range t.parseFuncs { nt.parseFuncs[k] = v }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 7.2K bytes - Viewed (0) -
pkg/revisions/default_watcher.go
func (p *defaultWatcher) GetDefault() string { p.mu.RLock() defer p.mu.RUnlock() return p.defaultRevision } // AddHandler registers a new handler for updates to default revision changes. func (p *defaultWatcher) AddHandler(handler DefaultHandler) { p.mu.Lock() defer p.mu.Unlock() p.handlers = append(p.handlers, handler) } func (p *defaultWatcher) HasSynced() bool {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 09 02:22:47 UTC 2023 - 3.1K bytes - Viewed (0) -
internal/config/batch/batch.go
func (opts Config) ExpirationWait() time.Duration { configMu.RLock() defer configMu.RUnlock() return opts.ExpirationWorkersWait } // ReplicationWait returns the duration for which a batch replication worker // would wait before working on next object. func (opts Config) ReplicationWait() time.Duration { configMu.RLock() defer configMu.RUnlock() return opts.ReplicationWorkersWait }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 4.7K bytes - Viewed (0)