Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 938 for rwmutex (0.28 sec)

  1. pkg/kubelet/status/state/state_checkpoint.go

    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager"
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager/errors"
    )
    
    var _ State = &stateCheckpoint{}
    
    type stateCheckpoint struct {
    	mux               sync.RWMutex
    	cache             State
    	checkpointManager checkpointmanager.CheckpointManager
    	checkpointName    string
    }
    
    // NewStateCheckpoint creates new State for keeping track of pod resource allocations with checkpoint backend
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 00:16:44 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  2. internal/pubsub/pubsub.go

    type PubSub[T Maskable, M Maskable] struct {
    	// atomics, keep at top:
    	types          uint64
    	numSubscribers int32
    	maxSubscribers int32
    
    	// not atomics:
    	subs []*Sub[T]
    	sync.RWMutex
    }
    
    // Publish message to the subscribers.
    // Note that publish is always non-blocking send so that we don't block on slow receivers.
    // Hence receivers should use buffered channel so as not to miss the published events.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 16:57:30 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/object_count_tracker.go

    	lastUpdatedAt time.Time
    }
    
    // objectCountTracker implements StorageObjectCountTracker with
    // reader/writer mutual exclusion lock.
    type objectCountTracker struct {
    	clock clock.PassiveClock
    
    	lock   sync.RWMutex
    	counts map[string]*timestampedCount
    }
    
    func (t *objectCountTracker) Set(groupResource string, count int64) {
    	if count <= -1 {
    		// a value of -1 indicates that the 'Count' call failed to contact
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 16 09:12:00 UTC 2022
    - 5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/attributes.go

    	userInfo    user.Info
    
    	// other elements are always accessed in single goroutine.
    	// But ValidatingAdmissionWebhook add annotations concurrently.
    	annotations     map[string]annotation
    	annotationsLock sync.RWMutex
    
    	reinvocationContext ReinvocationContext
    }
    
    type annotation struct {
    	level auditinternal.Level
    	value string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 07 17:53:14 UTC 2019
    - 6.2K bytes
    - Viewed (0)
  5. cmd/tier.go

    type TierConfigMgr struct {
    	sync.RWMutex `msg:"-"`
    	drivercache  map[string]WarmBackend `msg:"-"`
    
    	Tiers           map[string]madmin.TierConfig `json:"tiers"`
    	lastRefreshedAt time.Time                    `msg:"-"`
    }
    
    type tierMetrics struct {
    	sync.RWMutex  // protects requestsCount only
    	requestsCount map[string]struct {
    		success int64
    		failure int64
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 08:44:07 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  6. security/pkg/pki/ra/k8s_ra.go

    	keyCertBundle                *util.KeyCertBundle
    	raOpts                       *IstioRAOptions
    	caCertificatesFromMeshConfig map[string]string
    	certSignerDomain             string
    	// mutex protects the R/W to caCertificatesFromMeshConfig.
    	mutex sync.RWMutex
    }
    
    var pkiRaLog = log.RegisterScope("pkira", "Istiod RA log")
    
    // NewKubernetesRA : Create a RA that interfaces with K8S CSR CA
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 02 14:34:38 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  7. cmd/metrics-v3-cache.go

    	var (
    		// prevDriveIOStats is used to calculate "per second"
    		// values for IOStat related disk metrics e.g. reads/sec.
    		prevDriveIOStats            map[string]madmin.DiskIOStats
    		prevDriveIOStatsMu          sync.RWMutex
    		prevDriveIOStatsRefreshedAt time.Time
    	)
    
    	loadDriveMetrics := func(ctx context.Context) (v storageMetrics, err error) {
    		objLayer := newObjectLayerFn()
    		if objLayer == nil {
    			return
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. src/net/http/servemux121.go

    func init() {
    	if httpmuxgo121.Value() == "1" {
    		use121 = true
    		httpmuxgo121.IncNonDefault()
    	}
    }
    
    // serveMux121 holds the state of a ServeMux needed for Go 1.21 behavior.
    type serveMux121 struct {
    	mu    sync.RWMutex
    	m     map[string]muxEntry
    	es    []muxEntry // slice of entries sorted from longest to shortest.
    	hosts bool       // whether any patterns contain hostnames
    }
    
    type muxEntry struct {
    	h       Handler
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:40:38 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. pkg/kubelet/pluginmanager/cache/desired_state_of_world.go

    	// socketFileToInfo is a map containing the set of successfully registered plugins
    	// The keys are plugin socket file paths. The values are PluginInfo objects
    	socketFileToInfo map[string]PluginInfo
    	sync.RWMutex
    }
    
    var _ DesiredStateOfWorld = &desiredStateOfWorld{}
    
    // Generate a detailed error msg for logs
    func generatePluginMsgDetailed(prefixMsg, suffixMsg, socketPath, details string) (detailedMsg string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 12:47:44 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  10. pkg/util/goroutinemap/goroutinemap.go

    	return g
    }
    
    type goRoutineMap struct {
    	operations                map[string]operation
    	exponentialBackOffOnError bool
    	cond                      *sync.Cond
    	lock                      sync.RWMutex
    }
    
    // operation holds the state of a single goroutine.
    type operation struct {
    	operationPending bool
    	expBackoff       exponentialbackoff.ExponentialBackoff
    }
    
    func (grm *goRoutineMap) Run(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 6.8K bytes
    - Viewed (0)
Back to top