Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,091 for unlock2 (0.18 sec)

  1. 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)
  2. 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)
  3. src/database/sql/sql.go

    	}
    
    	s.removeClosedStmtLocked()
    	s.mu.Unlock()
    
    	dc, err = s.db.conn(ctx, strategy)
    	if err != nil {
    		return nil, nil, nil, err
    	}
    
    	s.mu.Lock()
    	for _, v := range s.css {
    		if v.dc == dc {
    			s.mu.Unlock()
    			return dc, dc.releaseConn, v.ds, nil
    		}
    	}
    	s.mu.Unlock()
    
    	// No luck; we need to prepare the statement on this connection
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  4. 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)
  5. src/crypto/x509/root.go

    	systemRootsErr error
    	fallbacksSet   bool
    )
    
    func systemRootsPool() *CertPool {
    	once.Do(initSystemRoots)
    	systemRootsMu.RLock()
    	defer systemRootsMu.RUnlock()
    	return systemRoots
    }
    
    func initSystemRoots() {
    	systemRootsMu.Lock()
    	defer systemRootsMu.Unlock()
    	systemRoots, systemRootsErr = loadSystemRoots()
    	if systemRootsErr != nil {
    		systemRoots = nil
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. cmd/site-replication-utils.go

    						}()
    					}
    				}
    				wg.Wait()
    				sm.Unlock()
    			}
    			sTimer.Reset(siteResyncSaveInterval)
    		case <-ctx.Done():
    			return
    		}
    	}
    }
    
    // update overall site resync state
    func (sm *siteResyncMetrics) updateState(s SiteResyncStatus) error {
    	if !globalSiteReplicationSys.isEnabled() {
    		return nil
    	}
    	sm.Lock()
    	defer sm.Unlock()
    	switch s.Status {
    	case ResyncStarted:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 8.9K bytes
    - Viewed (1)
  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. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/dropped_requests_tracker.go

    		// so in almost all cases, the fast path should be enough.
    		t.lock.RLock()
    		if plStats, ok := t.plStats[plName]; ok {
    			t.lock.RUnlock()
    			return plStats
    		}
    		t.lock.RUnlock()
    
    		// Slow path taking writer lock to update the map.
    		t.lock.Lock()
    		defer t.lock.Unlock()
    		if plStats, ok := t.plStats[plName]; ok {
    			return plStats
    		}
    		stats := newDroppedRequestsStats(unixTime)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 26 13:50:25 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  9. pilot/pkg/model/controller.go

    	c.serviceHandlers = handlers
    	c.mutex.Unlock()
    }
    
    func (c *ControllerHandlers) AppendWorkloadHandler(f func(*WorkloadInstance, Event)) {
    	// Copy on write.
    	c.mutex.Lock()
    	handlers := make([]func(*WorkloadInstance, Event), 0, len(c.workloadHandlers)+1)
    	handlers = append(handlers, c.workloadHandlers...)
    	handlers = append(handlers, f)
    	c.workloadHandlers = handlers
    	c.mutex.Unlock()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 25 06:54:32 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  10. 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)
Back to top