Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 938 for rwmutex (0.3 sec)

  1. src/syscall/forkpipe2.go

    var (
    	// Guard the forking variable.
    	forkingLock sync.Mutex
    	// Number of goroutines currently forking, and thus the
    	// number of goroutines holding a conceptual write lock
    	// on ForkLock.
    	forking int
    )
    
    // hasWaitingReaders reports whether any goroutine is waiting
    // to acquire a read lock on rw. It is defined in the sync package.
    func hasWaitingReaders(rw *sync.RWMutex) bool
    
    // acquireForkLock acquires a write lock on ForkLock.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 10 19:19:59 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. staging/src/k8s.io/apiserver/pkg/quota/v1/generic/registry.go

    */
    
    package generic
    
    import (
    	"sync"
    
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	quota "k8s.io/apiserver/pkg/quota/v1"
    )
    
    // implements a basic registry
    type simpleRegistry struct {
    	lock sync.RWMutex
    	// evaluators tracked by the registry
    	evaluators map[schema.GroupResource]quota.Evaluator
    }
    
    // NewRegistry creates a simple registry with initial list of evaluators
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 04 12:53:52 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher_test.go

    )
    
    // verifies the cacheWatcher.process goroutine is properly cleaned up even if
    // the writes to cacheWatcher.result channel is blocked.
    func TestCacheWatcherCleanupNotBlockedByResult(t *testing.T) {
    	var lock sync.RWMutex
    	var w *cacheWatcher
    	count := 0
    	filter := func(string, labels.Set, fields.Set) bool { return true }
    	forget := func(drainWatcher bool) {
    		lock.Lock()
    		defer lock.Unlock()
    		count++
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  7. 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)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/mapper.go

    	r.mutex.RLock()
    	defer r.mutex.RUnlock()
    	return r.resources[r.keys[resource.GroupResource()]][subresource]
    }
    func (r *equivalentResourceRegistry) KindFor(resource schema.GroupVersionResource, subresource string) schema.GroupVersionKind {
    	r.mutex.RLock()
    	defer r.mutex.RUnlock()
    	return r.kinds[resource][subresource]
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 18:26:06 UTC 2019
    - 3.6K bytes
    - Viewed (0)
  9. prepare_stmt.go

    }
    
    type PreparedStmtDB struct {
    	Stmts       map[string]*Stmt
    	PreparedSQL []string
    	Mux         *sync.RWMutex
    	ConnPool
    }
    
    func NewPreparedStmtDB(connPool ConnPool) *PreparedStmtDB {
    	return &PreparedStmtDB{
    		ConnPool:    connPool,
    		Stmts:       make(map[string]*Stmt),
    		Mux:         &sync.RWMutex{},
    		PreparedSQL: make([]string, 0, 100),
    	}
    }
    
    func (db *PreparedStmtDB) GetDBConn() (*sql.DB, error) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 28 08:47:39 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. 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)
Back to top