- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 71 for rwmutex (0.15 sec)
-
src/sync/rwmutex.go
// not locked for writing on entry to Unlock. // // As with Mutexes, a locked [RWMutex] is not associated with a particular // goroutine. One goroutine may [RWMutex.RLock] ([RWMutex.Lock]) a RWMutex and then // arrange for another goroutine to [RWMutex.RUnlock] ([RWMutex.Unlock]) it. func (rw *RWMutex) Unlock() { if race.Enabled { _ = rw.w.state race.Release(unsafe.Pointer(&rw.readerSem))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 7.2K 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/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) -
pkg/scheduler/framework/runtime/waiting_pods_map.go
"k8s.io/kubernetes/pkg/scheduler/framework" ) // waitingPodsMap a thread-safe map used to maintain pods waiting in the permit phase. type waitingPodsMap struct { pods map[types.UID]*waitingPod mu sync.RWMutex } // NewWaitingPodsMap returns a new waitingPodsMap. func NewWaitingPodsMap() *waitingPodsMap { return &waitingPodsMap{ pods: make(map[types.UID]*waitingPod), } } // add a new WaitingPod to the map.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 4.5K bytes - Viewed (0) -
pilot/pkg/trustbundle/trustbundle.go
} type TrustAnchorUpdate struct { TrustAnchorConfig Source Source } type TrustBundle struct { sourceConfig map[Source]TrustAnchorConfig mutex sync.RWMutex mergedCerts []string updatecb func() endpointMutex sync.RWMutex endpoints []string endpointUpdateChan chan struct{} remoteCaCertPool *x509.CertPool meshConfig mesh.Watcher } var (
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 7.8K bytes - Viewed (0) -
src/crypto/x509/root.go
// - github.com/breml/rootcerts // // Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname systemRoots var ( once sync.Once systemRootsMu sync.RWMutex systemRoots *CertPool systemRootsErr error fallbacksSet bool ) func systemRootsPool() *CertPool { once.Do(initSystemRoots) systemRootsMu.RLock() defer systemRootsMu.RUnlock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 2.3K bytes - Viewed (0) -
pkg/kubelet/config/sources.go
sourcesReadyFn: sourcesReadyFn, } } // sourcesImpl implements SourcesReady. It is thread-safe. type sourcesImpl struct { // lock protects access to sources seen. lock sync.RWMutex // set of sources seen. sourcesSeen sets.Set[string] // sourcesReady is a function that evaluates if the sources are ready. sourcesReadyFn SourcesReadyFn }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 2K bytes - Viewed (0) -
internal/config/callhome/callhome.go
type Config struct { // Flag indicating whether callhome is enabled. Enable bool `json:"enable"` // The interval between callhome cycles Frequency time.Duration `json:"frequency"` } var configLock sync.RWMutex // Enabled - indicates if callhome is enabled or not func (c *Config) Enabled() bool { configLock.RLock() defer configLock.RUnlock() return c.Enable }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 2.6K bytes - Viewed (0) -
pkg/kubelet/pod/testing/fake_mirror_client.go
v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/util/sets" kubecontainer "k8s.io/kubernetes/pkg/kubelet/container" ) type FakeMirrorClient struct { mirrorPodLock sync.RWMutex // Note that a real mirror manager does not store the mirror pods in // itself. This fake manager does this to track calls. mirrorPods sets.Set[string] createCounts map[string]int deleteCounts map[string]int }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 2.4K bytes - Viewed (0) -
internal/config/drive/drive.go
EnvMaxDiskTimeoutLegacy = "_MINIO_DISK_MAX_TIMEOUT" ) // DefaultKVS - default KVS for drive var DefaultKVS = config.KVS{ config.KV{ Key: MaxTimeout, Value: "30s", }, } var configLk sync.RWMutex // Config represents the subnet related configuration type Config struct { // MaxTimeout - maximum timeout for a drive operation MaxTimeout time.Duration `json:"maxTimeout"` }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 3K bytes - Viewed (0)