Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,091 for unlock2 (0.24 sec)

  1. pkg/kubelet/pod/testing/fake_mirror_client.go

    	fmc.mirrorPodLock.RLock()
    	defer fmc.mirrorPodLock.RUnlock()
    	return fmc.mirrorPods.Has(podFullName)
    }
    
    func (fmc *FakeMirrorClient) NumOfPods() int {
    	fmc.mirrorPodLock.RLock()
    	defer fmc.mirrorPodLock.RUnlock()
    	return fmc.mirrorPods.Len()
    }
    
    func (fmc *FakeMirrorClient) GetPods() []string {
    	fmc.mirrorPodLock.RLock()
    	defer fmc.mirrorPodLock.RUnlock()
    	return sets.List(fmc.mirrorPods)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. internal/config/lambda/event/targetlist.go

    	list.Lock()
    	defer list.Unlock()
    
    	for id := range targetIDSet {
    		target, ok := list.targets[id]
    		if ok {
    			target.Close()
    			delete(list.targets, id)
    		}
    	}
    }
    
    // Targets - list all targets
    func (list *TargetList) Targets() []Target {
    	if list == nil {
    		return []Target{}
    	}
    
    	list.RLock()
    	defer list.RUnlock()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. internal/store/queuestore.go

    func (store *QueueStore[_]) Del(key string) error {
    	store.Lock()
    	defer store.Unlock()
    	return store.del(key)
    }
    
    // DelList - Deletes a list of entries from the store.
    // Returns an error even if one key fails to be deleted.
    func (store *QueueStore[_]) DelList(keys []string) error {
    	store.Lock()
    	defer store.Unlock()
    
    	for _, key := range keys {
    		if err := store.del(key); err != nil {
    			return err
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 25 16:44:20 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. src/sync/map_reference_test.go

    	value, loaded = m.dirty[key]
    	if !loaded {
    		m.mu.Unlock()
    		return nil, false
    	}
    	delete(m.dirty, key)
    	m.mu.Unlock()
    	return value, loaded
    }
    
    func (m *RWMutexMap) Delete(key any) {
    	m.mu.Lock()
    	delete(m.dirty, key)
    	m.mu.Unlock()
    }
    
    func (m *RWMutexMap) CompareAndSwap(key, old, new any) (swapped bool) {
    	m.mu.Lock()
    	defer m.mu.Unlock()
    	if m.dirty == nil {
    		return false
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. cmd/handler-api.go

    		globalHTTPStats.incS3RequestsIncoming()
    
    		if r.Header.Get(globalObjectPerfUserMetadata) == "" {
    			if val := globalServiceFreeze.Load(); val != nil {
    				if unlock, ok := val.(chan struct{}); ok && unlock != nil {
    					// Wait until unfrozen.
    					select {
    					case <-unlock:
    					case <-r.Context().Done():
    						// if client canceled we don't need to wait here forever.
    						return
    					}
    				}
    			}
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 08:13:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/LockOnDemandCrossProcessCacheAccess.java

                }
                releaseLockIfHeld();
            } finally {
                stateLock.unlock();
            }
        }
    
        @Override
        public <T> T withFileLock(Supplier<T> factory) {
            incrementLockCount();
            try {
                return factory.get();
            } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. internal/event/targetlist.go

    	list.statLock.Lock()
    	defer list.statLock.Unlock()
    
    	stats, ok := list.targetStats[id]
    	if !ok {
    		// should not happen
    		return
    	}
    
    	stats.currentSendCalls--
    	list.targetStats[id] = stats
    	return
    }
    
    func (list *TargetList) incFailedEvents(id TargetID) {
    	list.statLock.Lock()
    	defer list.statLock.Unlock()
    
    	stats, ok := list.targetStats[id]
    	if !ok {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. pkg/controller/util/selectors/bimultimap.go

    func (m *BiMultimap) Exists(key Key) bool {
    	m.mux.RLock()
    	defer m.mux.RUnlock()
    
    	_, exists := m.labeledObjects[key]
    	return exists
    }
    
    // PutSelector inserts or updates an object with a selector. Associations
    // are created or updated based on the selector.
    func (m *BiMultimap) PutSelector(key Key, selector pkglabels.Selector) {
    	m.mux.Lock()
    	defer m.mux.Unlock()
    
    	selectorKey := selectorKey{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 21:41:32 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/cpumanager/state/state_checkpoint.go

    	sc.mux.Lock()
    	defer sc.mux.Unlock()
    	sc.cache.SetCPUSet(podUID, containerName, cset)
    	err := sc.storeState()
    	if err != nil {
    		klog.InfoS("Store state to checkpoint error", "err", err)
    	}
    }
    
    // SetDefaultCPUSet sets default CPU set
    func (sc *stateCheckpoint) SetDefaultCPUSet(cset cpuset.CPUSet) {
    	sc.mux.Lock()
    	defer sc.mux.Unlock()
    	sc.cache.SetDefaultCPUSet(cset)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 00:59:30 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. pkg/volume/testing/testing.go

    	plugin.RLock()
    	defer plugin.RUnlock()
    	return plugin.Mounters
    }
    
    func (plugin *FakeVolumePlugin) NewUnmounter(volName string, podUID types.UID) (volume.Unmounter, error) {
    	plugin.Lock()
    	defer plugin.Unlock()
    	fakeVolume := plugin.getFakeVolume(&plugin.Unmounters)
    	fakeVolume.Lock()
    	defer fakeVolume.Unlock()
    	fakeVolume.PodUID = podUID
    	fakeVolume.VolName = volName
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top