Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 938 for rwmutex (0.19 sec)

  1. internal/logger/targets.go

    	IsOnline(ctx context.Context) bool
    	Cancel()
    	Send(ctx context.Context, entry interface{}) error
    	Type() types.TargetType
    }
    
    type targetsList struct {
    	list []Target
    	mu   sync.RWMutex
    }
    
    func newTargetsList() *targetsList {
    	return &targetsList{}
    }
    
    func (tl *targetsList) get() []Target {
    	tl.mu.RLock()
    	defer tl.mu.RUnlock()
    
    	return tl.list
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:44:50 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. pilot/pkg/model/network.go

    	ngh.handlers = append(ngh.handlers, h)
    }
    
    func (ngh *NetworkGatewaysHandler) NotifyGatewayHandlers() {
    	for _, handler := range ngh.handlers {
    		handler()
    	}
    }
    
    type NetworkGateways struct {
    	mu *sync.RWMutex
    	// least common multiple of gateway number of {per network, per cluster}
    	lcm                 uint32
    	byNetwork           map[network.ID][]NetworkGateway
    	byNetworkAndCluster map[networkAndCluster][]NetworkGateway
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  3. pkg/filewatcher/worker.go

    package filewatcher
    
    import (
    	"bufio"
    	"bytes"
    	"crypto/sha256"
    	"fmt"
    	"io"
    	"os"
    	"sync"
    
    	"github.com/fsnotify/fsnotify"
    )
    
    type worker struct {
    	mu sync.RWMutex
    
    	// watcher is an fsnotify watcher that watches the parent
    	// dir of watchedFiles.
    	dirWatcher *fsnotify.Watcher
    
    	// The worker maintains a map of channels keyed by watched file path.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 12 22:31:06 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. cmd/metacache-manager.go

    // Therefore no cluster locks are required.
    var localMetacacheMgr = &metacacheManager{
    	buckets: make(map[string]*bucketMetacache),
    	trash:   make(map[string]metacache),
    }
    
    type metacacheManager struct {
    	mu      sync.RWMutex
    	init    sync.Once
    	buckets map[string]*bucketMetacache
    	trash   map[string]metacache // Recently deleted lists.
    }
    
    const metacacheMaxEntries = 5000
    
    // initManager will start async saving the cache.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Oct 25 00:44:15 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  5. internal/config/cache/cache.go

    	// data is cached and fetched remotely from DRAM.
    	BlockSize int64
    
    	// Is the HTTP client used for communicating with mcache server
    	clnt *http.Client
    }
    
    var configLock sync.RWMutex
    
    // Enabled - indicates if cache is enabled or not
    func (c *Config) Enabled() bool {
    	return c.Enable && c.Endpoint != ""
    }
    
    // MatchesSize verifies if input 'size' falls under cacheable threshold
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. internal/config/identity/openid/openid.go

    	}
    	c = Config{
    		Enabled:            false,
    		arnProviderCfgsMap: map[arn.ARN]*providerCfg{},
    		ProviderCfgs:       map[string]*providerCfg{},
    		pubKeys: publicKeys{
    			RWMutex: &sync.RWMutex{},
    			pkMap:   map[string]interface{}{},
    		},
    		roleArnPolicyMap: map[arn.ARN]string{},
    		transport:        openIDClientTransport,
    		closeRespFn:      closeRespFn,
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. cmd/metrics-resource.go

    	resourceMetricsMapMu sync.RWMutex
    	// resourceMetricsHelpMap maps metric name to its help string
    	resourceMetricsHelpMap map[MetricName]string
    	resourceMetricsGroups  []*MetricsGroupV2
    	// initial values for drives (at the time  of server startup)
    	// used for calculating avg values for drive metrics
    	latestDriveStats      map[string]madmin.DiskIOStats
    	latestDriveStatsMu    sync.RWMutex
    	lastDriveStatsRefresh time.Time
    )
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 17 15:15:13 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  8. cmd/metacache-bucket.go

    	// Name of bucket
    	bucket string
    
    	// caches indexed by id.
    	caches map[string]metacache
    	// cache ids indexed by root paths
    	cachesRoot map[string][]string `msg:"-"`
    
    	// Internal state
    	mu      sync.RWMutex `msg:"-"`
    	updated bool         `msg:"-"`
    }
    
    type deleteAllStorager interface {
    	deleteAll(ctx context.Context, bucket, prefix string)
    }
    
    // newBucketMetacache creates a new bucketMetacache.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. cmd/event-notification.go

    	"github.com/minio/minio/internal/pubsub"
    	"github.com/minio/pkg/v3/policy"
    )
    
    // EventNotifier - notifies external systems about events in MinIO.
    type EventNotifier struct {
    	sync.RWMutex
    	targetList     *event.TargetList
    	bucketRulesMap map[string]event.RulesMap
    }
    
    // NewEventNotifier - creates new event notification object.
    func NewEventNotifier(ctx context.Context) *EventNotifier {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/cache/expiring.go

    	// until the next call to Set (which causes the GC to run).
    	// It may not be changed concurrently with calls to Get.
    	AllowExpiredGet bool
    
    	clock clock.Clock
    
    	// mu protects the below fields
    	mu sync.RWMutex
    	// cache is the internal map that backs the cache.
    	cache map[interface{}]entry
    	// generation is used as a cheap resource version for cache entries. Cleanups
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 22 15:51:23 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top