- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 938 for rwmutex (0.43 sec)
-
operator/pkg/cache/cache.go
// Cache is a cache keyed by object Hash() function. Cache map[string]*object.K8sObject Mu *sync.RWMutex } var ( // objectCaches holds the latest copy of each object applied by the controller. The caches are divided by component // name. objectCaches = make(map[string]*ObjectCache) objectCachesMu sync.RWMutex ) // FlushObjectCaches flushes all object caches. func FlushObjectCaches() { objectCachesMu.Lock()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Dec 06 13:12:49 UTC 2023 - 2.4K bytes - Viewed (0) -
pkg/controller/garbagecollector/graph.go
dependentsLock sync.RWMutex // dependents are the nodes that have node.identity as a // metadata.ownerReference. dependents map[*node]struct{} // this is set by processGraphChanges() if the object has non-nil DeletionTimestamp // and has the FinalizerDeleteDependents. deletingDependents bool deletingDependentsLock sync.RWMutex // this records if the object's deletionTimestamp is non-nil.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 13:37:56 UTC 2023 - 7.1K bytes - Viewed (0) -
internal/lsync/lrwmutex_test.go
defer func() { if recover() == nil { t.Fatalf("unlock of unlocked RWMutex did not panic") } }() mu := NewLRWMutex() mu.Unlock() } // Borrowed from rwmutex_test.go func TestUnlockPanic2(t *testing.T) { defer func() { if recover() == nil { t.Fatalf("unlock of unlocked RWMutex did not panic") } }() mu := NewLRWMutex() mu.RLock() mu.Unlock() }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Mar 05 04:57:35 UTC 2023 - 7.9K bytes - Viewed (0) -
internal/config/identity/openid/jwt_test.go
if err != nil { t.Fatal(err) } fmt.Println(token) u1, err := xnet.ParseHTTPURL(server.URL) if err != nil { t.Fatal(err) } pubKeys := publicKeys{ RWMutex: &sync.RWMutex{}, pkMap: map[string]interface{}{}, } pubKeys.add("76b95ae5-33ef-4283-97b7-d2a85dc2d8f4", []byte("WNGvKVyyNmXq0TraSvjaDN9CtpFgx35IXtGEffMCPR0")) if len(pubKeys.pkMap) != 1 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8.3K bytes - Viewed (0) -
pkg/monitoring/gauge.go
// attributeSets stores a map of attributes -> values, for gauges. attributeSetsMutex *sync.RWMutex attributeSets map[attribute.Set]*gaugeValues currentGaugeSet *gaugeValues } var _ Metric = &gauge{} func newGauge(o options) *gauge { r := &gauge{ attributeSetsMutex: &sync.RWMutex{}, } r.attributeSets = map[attribute.Set]*gaugeValues{} g, err := meter().Float64ObservableGauge(o.name,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 13 16:04:48 UTC 2023 - 2.9K bytes - Viewed (0) -
internal/dsync/drwmutex_test.go
if recover() == nil { t.Fatalf("unlock of unlocked RWMutex did not panic") } }() mu := NewDRWMutex(ds, "test") mu.Unlock(context.Background()) } // Borrowed from rwmutex_test.go func TestUnlockPanic2(t *testing.T) { mu := NewDRWMutex(ds, "test-unlock-panic-2") defer func() { if recover() == nil { t.Fatalf("unlock of unlocked RWMutex did not panic") }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Dec 24 03:49:07 UTC 2022 - 9.7K bytes - Viewed (0) -
test/typeparam/issue48454.dir/a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 24 18:21:14 UTC 2021 - 280 bytes - Viewed (0) -
src/go/internal/gccgoimporter/testdata/issue30628.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 20:50:13 UTC 2019 - 211 bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery.go
"sync" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apiserver/pkg/endpoints/discovery" ) type versionDiscoveryHandler struct { // TODO, writing is infrequent, optimize this discoveryLock sync.RWMutex discovery map[schema.GroupVersion]*discovery.APIVersionHandler delegate http.Handler } func (r *versionDiscoveryHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 10:06:31 UTC 2017 - 3.2K bytes - Viewed (0) -
pkg/kube/krt/index.go
package krt import ( "sync" "istio.io/istio/pkg/ptr" "istio.io/istio/pkg/util/sets" ) // Index maintains a simple index over an informer type Index[I any, K comparable] struct { mu sync.RWMutex objects map[K]sets.Set[Key[I]] c Collection[I] extract func(o I) []K } // Lookup finds all objects matching a given key func (i *Index[I, K]) Lookup(k K) []I { i.mu.RLock() defer i.mu.RUnlock()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 04:53:45 UTC 2024 - 2.8K bytes - Viewed (0)