- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,097 for unlock2 (0.22 sec)
-
internal/bucket/bandwidth/monitor.go
m.tlock.Unlock() m.mlock.Lock() delete(m.bucketsMeasurement, BucketOptions{Name: bucket, ReplicationARN: arn}) m.mlock.Unlock() } // throttle returns currently configured throttle for this bucket func (m *Monitor) throttle(opts BucketOptions) *bucketThrottle { m.tlock.RLock() defer m.tlock.RUnlock() return m.bucketsThrottle[opts] }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Feb 19 22:54:46 UTC 2024 - 6K bytes - Viewed (0) -
pkg/controller/garbagecollector/graph.go
func (n *node) markBeingDeleted() { n.beingDeletedLock.Lock() defer n.beingDeletedLock.Unlock() n.beingDeleted = true } func (n *node) isBeingDeleted() bool { n.beingDeletedLock.RLock() defer n.beingDeletedLock.RUnlock() return n.beingDeleted } func (n *node) markObserved() { n.virtualLock.Lock() defer n.virtualLock.Unlock() n.virtual = false } func (n *node) isObserved() bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 13:37:56 UTC 2023 - 7.1K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/state/state_mem.go
} func (s *stateMemory) SetDefaultCPUSet(cset cpuset.CPUSet) { s.Lock() defer s.Unlock() s.defaultCPUSet = cset klog.InfoS("Updated default CPUSet", "cpuSet", cset) } func (s *stateMemory) SetCPUAssignments(a ContainerCPUAssignments) { s.Lock() defer s.Unlock() s.assignments = a.Clone() klog.InfoS("Updated CPUSet assignments", "assignments", a) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 03 16:26:09 UTC 2023 - 2.9K bytes - Viewed (0) -
test/inline_sync.go
// is solved. package foo import ( "sync" ) var mutex *sync.Mutex func small5() { // ERROR "can inline small5" // the Unlock fast path should be inlined mutex.Unlock() // ERROR "inlining call to sync\.\(\*Mutex\)\.Unlock" } func small6() { // ERROR "can inline small6" // the Lock fast path should be inlined mutex.Lock() // ERROR "inlining call to sync\.\(\*Mutex\)\.Lock" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 06 21:01:50 UTC 2023 - 1.6K bytes - Viewed (0) -
cmd/lock-rest-client.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Nov 24 17:07:14 UTC 2023 - 3.3K bytes - Viewed (0) -
pilot/pkg/model/addressmap.go
if len(addrs) == 0 { addrs = nil } m.mutex.Lock() m.Addresses = addrs m.mutex.Unlock() } func (m *AddressMap) GetAddressesFor(c cluster.ID) []string { if m == nil { return nil } m.mutex.RLock() defer m.mutex.RUnlock() if m.Addresses == nil { return nil } // Copy the Addresses array. return append([]string{}, m.Addresses[c]...) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 06 14:34:57 UTC 2023 - 3.4K bytes - Viewed (0) -
cmd/bucket-targets.go
sys.aMutex.Lock() defer sys.aMutex.Unlock() if v, ok := sys.arnErrsMap[arn]; !ok { sys.arnErrsMap[arn] = arnErrs{ updateInProgress: true, count: v.count + 1, bucket: bucket, } } } func (sys *BucketTargetSys) markRefreshDone(bucket, arn string) { sys.aMutex.Lock() defer sys.aMutex.Unlock() if v, ok := sys.arnErrsMap[arn]; ok {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 01 01:09:56 UTC 2024 - 20.9K bytes - Viewed (0) -
cmd/metacache-manager.go
m.init.Do(m.initManager) m.mu.Lock() b, ok := m.buckets[bucket] if !ok { m.mu.Unlock() return } delete(m.buckets, bucket) m.mu.Unlock() // Since deletes may take some time we try to do it without // holding lock to m all the time. b.mu.Lock() defer b.mu.Unlock() for k, v := range b.caches { if time.Since(v.lastUpdate) > metacacheMaxRunningAge {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Oct 25 00:44:15 UTC 2022 - 5.2K bytes - Viewed (0) -
pkg/kube/multicluster/clusterstore.go
c.Lock() defer c.Unlock() if _, ok := c.remoteClusters[secretKey]; !ok { c.remoteClusters[secretKey] = make(map[cluster.ID]*Cluster) } c.remoteClusters[secretKey][clusterID] = value c.clusters.Insert(string(clusterID)) } func (c *ClusterStore) Delete(secretKey string, clusterID cluster.ID) { c.Lock() defer c.Unlock() delete(c.remoteClusters[secretKey], clusterID)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 07 15:01:12 UTC 2023 - 3.6K bytes - Viewed (0) -
pkg/kubelet/cm/memorymanager/state/state_checkpoint.go
sc.Lock() defer sc.Unlock() sc.cache.SetMemoryAssignments(assignments) err := sc.storeState() if err != nil { klog.InfoS("Store state to checkpoint error", "err", err) } } // Delete deletes corresponding Blocks from ContainerMemoryAssignments func (sc *stateCheckpoint) Delete(podUID string, containerName string) { sc.Lock() defer sc.Unlock() sc.cache.Delete(podUID, containerName)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 08 16:05:48 UTC 2022 - 5.3K bytes - Viewed (0)