Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 938 for rwmutex (0.22 sec)

  1. internal/store/queuestore.go

    // errLimitExceeded error is sent when the maximum limit is reached.
    var errLimitExceeded = errors.New("the maximum store limit reached")
    
    // QueueStore - Filestore for persisting items.
    type QueueStore[_ any] struct {
    	sync.RWMutex
    	entryLimit uint64
    	directory  string
    	fileExt    string
    
    	entries map[string]int64 // key -> modtime as unix nano
    }
    
    // NewQueueStore - Creates an instance for QueueStore.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 25 16:44:20 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. cmd/site-replication-metrics.go

    	ReplicaCount int64                `json:"replicaCount"`
    	M            map[string]*SRStatus `json:"srStatusMap"`
    
    	movingAvgTicker *time.Ticker // Ticker for calculating moving averages
    	lock            sync.RWMutex // mutex for srStats
    }
    
    // SRStatus has replication stats at deployment level
    type SRStatus struct {
    	ReplicatedSize int64 `json:"completedReplicationSize"`
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/state/state_checkpoint.go

    	"k8s.io/kubernetes/pkg/kubelet/cm/containermap"
    	"k8s.io/utils/cpuset"
    )
    
    var _ State = &stateCheckpoint{}
    
    type stateCheckpoint struct {
    	mux               sync.RWMutex
    	policyName        string
    	cache             State
    	checkpointManager checkpointmanager.CheckpointManager
    	checkpointName    string
    	initialContainers containermap.ContainerMap
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 00:59:30 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. pkg/ledger/smt.go

    SOFTWARE.
    © 2019 GitHub, Inc.
    */
    
    // TODO when using the smt, make sure keys and values are same length as hash
    
    // smt is a sparse Merkle tree.
    type smt struct {
    	rootMu sync.RWMutex
    	// root is the current root of the smt.
    	root []byte
    	// defaultHashes are the default values of empty trees
    	defaultHashes [][]byte
    	// db holds the cache and related locks
    	db *cacheDB
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 14K bytes
    - Viewed (0)
  5. pkg/config/crd/validator.go

    	// If enabled, resources without a validator will be ignored. Otherwise, they will fail.
    	SkipMissing bool
    }
    
    type ValidationIgnorer struct {
    	mu                  sync.RWMutex
    	patternsByNamespace map[string]sets.String
    }
    
    // NewValidationIgnorer initializes the ignorer for the validatior, pairs are in namespace/namePattern format.
    func NewValidationIgnorer(pairs ...string) *ValidationIgnorer {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 17 15:38:40 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  6. pkg/kubelet/winstats/network_stats.go

    	packetsReceivedDiscardedCounter perfCounter
    	packetsReceivedErrorsCounter    perfCounter
    	packetsOutboundDiscardedCounter perfCounter
    	packetsOutboundErrorsCounter    perfCounter
    
    	mu           sync.RWMutex
    	adapterStats map[string]cadvisorapi.InterfaceStats
    }
    
    func newNetworkCounters() (*networkCounter, error) {
    	packetsReceivedPerSecondCounter, err := newPerfCounter(packetsReceivedPerSecondQuery)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/dra/claiminfo.go

    	annotations map[string][]kubecontainer.Annotation
    	prepared    bool
    }
    
    // claimInfoCache is a cache of processed resource claims keyed by namespace/claimname.
    type claimInfoCache struct {
    	sync.RWMutex
    	state     state.CheckpointState
    	claimInfo map[string]*ClaimInfo
    }
    
    // newClaimInfoFromClaim creates a new claim info from a resource claim.
    func newClaimInfoFromClaim(claim *resourcev1alpha2.ResourceClaim) *ClaimInfo {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:31 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/eventclock/fake.go

    // counted in that GoRoutineCounter.
    type Fake struct {
    	baseclocktest.FakePassiveClock
    
    	// waiters is a heap of waiting work, sorted by time
    	waiters     eventWaiterHeap
    	waitersLock sync.RWMutex
    
    	// clientWG may be nil and if not supplies constraints on time
    	// passing in Run.  The Run method will not pick a new time until
    	// this is nil or its counter is zero.
    	clientWG *waitGroupCounter
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  9. pkg/kube/namespace/filter.go

    	"istio.io/istio/pkg/kube/kubetypes"
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/util/sets"
    )
    
    type DiscoveryFilter func(obj any) bool
    
    type discoveryNamespacesFilter struct {
    	lock                sync.RWMutex
    	namespaces          kclient.Client[*corev1.Namespace]
    	discoveryNamespaces sets.String
    	discoverySelectors  []labels.Selector // nil if discovery selectors are not specified, permits all namespaces for discovery
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 17:12:52 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. pkg/istio-agent/xds_proxy.go

    	optsMutex            sync.RWMutex
    	dialOptions          []grpc.DialOption
    	handlers             map[string]ResponseHandler
    	healthChecker        *health.WorkloadHealthChecker
    	xdsHeaders           map[string]string
    	xdsUdsPath           string
    	proxyAddresses       []string
    	ia                   *Agent
    
    	httpTapServer      *http.Server
    	tapMutex           sync.RWMutex
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 27.9K bytes
    - Viewed (0)
Back to top