Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 432 for unlock2 (0.34 sec)

  1. internal/grid/muxclient.go

    	}
    	if m.subroute != nil {
    		msg.Flags |= FlagSubroute
    	}
    	ch := make(chan Response, 1)
    	m.respMu.Lock()
    	if m.closed {
    		m.respMu.Unlock()
    		return nil, ErrDisconnected
    	}
    	m.respWait = ch
    	m.respMu.Unlock()
    	ctx := m.ctx
    
    	// Add deadline if none.
    	if msg.DeadlineMS == 0 {
    		msg.DeadlineMS = uint32(defaultSingleRequestTimeout / time.Millisecond)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  2. pkg/kubelet/pod/pod_manager.go

    	}
    }
    
    func (pm *basicManager) GetPods() []*v1.Pod {
    	pm.lock.RLock()
    	defer pm.lock.RUnlock()
    	return podsMapToPods(pm.podByUID)
    }
    
    func (pm *basicManager) GetPodsAndMirrorPods() (allPods []*v1.Pod, allMirrorPods []*v1.Pod, orphanedMirrorPodFullnames []string) {
    	pm.lock.RLock()
    	defer pm.lock.RUnlock()
    	allPods = podsMapToPods(pm.podByUID)
    	allMirrorPods = mirrorPodsMapToMirrorPods(pm.mirrorPodByUID)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:00 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. pilot/pkg/model/typed_xds_cache.go

    	l.mu.Lock()
    	defer l.mu.Unlock()
    	cv, ok := l.store.Get(key)
    	if !ok || cv.value == nil {
    		miss()
    		return nil
    	}
    	if cv.token >= token {
    		hit()
    		return cv.value
    	}
    	miss()
    	return nil
    }
    
    func (l *lruCache[K]) Clear(configs sets.Set[ConfigKey]) {
    	l.mu.Lock()
    	defer l.mu.Unlock()
    	l.token = CacheToken(time.Now().UnixNano())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/DefaultResourceLockCoordinationServiceTest.groovy

            true        | false       | RETRY
            false       | true        | RETRY
            false       | false       | FINISHED
        }
    
        def "can unlock resources with unlock"() {
            def lock1 = resourceLock("lock1", lock1Locked, true)
            def lock2 = resourceLock("lock1", lock2Locked, true)
    
            when:
            def disposition = null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 17:16:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. pkg/kubelet/util/manager/watch_based_manager.go

    	c.lock.Lock()
    	defer c.lock.Unlock()
    	err := c.Store.Replace(list, resourceVersion)
    	if err != nil {
    		return err
    	}
    	c.initialized = true
    	return nil
    }
    
    func (c *cacheStore) hasSynced() bool {
    	c.lock.Lock()
    	defer c.lock.Unlock()
    	return c.initialized
    }
    
    func (c *cacheStore) unsetInitialized() {
    	c.lock.Lock()
    	defer c.lock.Unlock()
    	c.initialized = false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. cmd/bucket-metadata-sys.go

    	}
    
    	sys.Lock()
    	sys.initialized = true
    	sys.Unlock()
    
    	if globalIsDistErasure {
    		go sys.refreshBucketsMetadataLoop(ctx, failedBuckets)
    	}
    }
    
    // Reset the state of the BucketMetadataSys.
    func (sys *BucketMetadataSys) Reset() {
    	sys.Lock()
    	for k := range sys.metadataMap {
    		delete(sys.metadataMap, k)
    	}
    	sys.Unlock()
    }
    
    // NewBucketMetadataSys - creates new policy system.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go

    	timestamp time.Time
    }
    
    func (a *atomicLastError) Store(err error, t time.Time) {
    	a.mu.Lock()
    	defer a.mu.Unlock()
    	if a.timestamp.IsZero() || a.timestamp.Before(t) {
    		a.err = err
    		a.timestamp = t
    	}
    }
    
    func (a *atomicLastError) Load() error {
    	a.mu.RLock()
    	defer a.mu.RUnlock()
    	return a.err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 07:56:39 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  8. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    }
    
    func (plugin *TestPlugin) GetErrorEncountered() bool {
    	plugin.pluginLock.RLock()
    	defer plugin.pluginLock.RUnlock()
    	return plugin.ErrorEncountered
    }
    
    func (plugin *TestPlugin) GetAttachedVolumes() map[string][]string {
    	plugin.pluginLock.RLock()
    	defer plugin.pluginLock.RUnlock()
    	ret := make(map[string][]string)
    	for nodeName, volumeList := range plugin.attachedVolumeMap {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 17 08:48:30 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top