- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 483 for rwmutex (0.21 sec)
-
pkg/kube/kclient/index.go
"istio.io/istio/pkg/kube/controllers" "istio.io/istio/pkg/util/sets" ) // Index maintains a simple index over an informer type Index[K comparable, O controllers.ComparableObject] struct { mu sync.RWMutex objects map[K]sets.Set[types.NamespacedName] client Informer[O] } // Lookup finds all objects matching a given key func (i *Index[K, O]) Lookup(k K) []O { i.mu.RLock() defer i.mu.RUnlock()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 04 03:49:30 UTC 2023 - 3.5K bytes - Viewed (0) -
src/go/internal/gccgoimporter/testdata/issue30628.gox
types 13 2 24 84 208 17 30 41 147 86 17 64 25 75 type 1 "Apple" <type 2> type 2 struct { .issue30628.hey <type 3>; .issue30628.x <type -11>; RQ <type 11>; } type 3 "sync.RWMutex" <type 7> func (rw <type 4>) Lock () func (rw <esc:0x12> <type 4>) RLocker () ($ret8 <type 5>) func (rw <type 4>) RUnlock () func (rw <type 4>) Unlock () func (rw <type 4>) RLock () type 4 *<type 3>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 20:50:13 UTC 2019 - 1.4K bytes - Viewed (0) -
internal/bucket/bandwidth/monitor.go
type bucketThrottle struct { *rate.Limiter NodeBandwidthPerSec int64 } // Monitor holds the state of the global bucket monitor type Monitor struct { tlock sync.RWMutex // mutex for bucket throttling mlock sync.RWMutex // mutex for bucket measurement bucketsThrottle map[BucketOptions]*bucketThrottle bucketsMeasurement map[BucketOptions]*bucketMeasurement // Buckets with objects in flight
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Feb 19 22:54:46 UTC 2024 - 6K 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) -
pkg/kubelet/cm/dra/plugin/plugins_store.go
) // PluginsStore holds a list of DRA Plugins. type pluginsStore struct { sync.RWMutex store map[string]*plugin } // draPlugins map keeps track of all registered DRA plugins on the node // and their corresponding sockets. var draPlugins = &pluginsStore{} // Get lets you retrieve a DRA Plugin by name. // This method is protected by a mutex. func (s *pluginsStore) get(pluginName string) *plugin { s.RLock() defer s.RUnlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 13:11:27 UTC 2023 - 1.7K 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) -
pkg/volume/csi/csi_drivers_store.go
highestSupportedVersion *utilversion.Version } // DriversStore holds a list of CSI Drivers type DriversStore struct { store sync.RWMutex } type store map[string]Driver // Get lets you retrieve a CSI Driver by name. // This method is protected by a mutex. func (s *DriversStore) Get(driverName string) (Driver, bool) { s.RLock() defer s.RUnlock() driver, ok := s.store[driverName] return driver, ok
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 16 11:12:06 UTC 2022 - 1.8K bytes - Viewed (0) -
src/net/internal/socktest/switch.go
package socktest import ( "fmt" "sync" ) // A Switch represents a callpath point switch for socket system // calls. type Switch struct { once sync.Once fmu sync.RWMutex fltab map[FilterType]Filter smu sync.RWMutex sotab Sockets stats stats } func (sw *Switch) init() { sw.fltab = make(map[FilterType]Filter) sw.sotab = make(Sockets) sw.stats = make(stats) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 4.8K bytes - Viewed (0) -
cmd/object-api-common.go
deletedBucketsPrefix = ".deleted" // ETag (hex encoded md5sum) of empty string. emptyETag = "d41d8cd98f00b204e9800998ecf8427e" ) // Global object layer mutex, used for safely updating object layer. var globalObjLayerMutex sync.RWMutex // Global object layer, only accessed by globalObjectAPI. var globalObjectAPI ObjectLayer type storageOpts struct { cleanUp bool healthCheck bool }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Nov 21 01:09:35 UTC 2023 - 2.1K bytes - Viewed (0) -
src/sync/map_reference_test.go
Clear() } var ( _ mapInterface = &RWMutexMap{} _ mapInterface = &DeepCopyMap{} ) // RWMutexMap is an implementation of mapInterface using a sync.RWMutex. type RWMutexMap struct { mu sync.RWMutex dirty map[any]any } func (m *RWMutexMap) Load(key any) (value any, ok bool) { m.mu.RLock() value, ok = m.dirty[key] m.mu.RUnlock() return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 15:34:22 UTC 2024 - 5.6K bytes - Viewed (0)