Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 92 for unlock2 (0.18 sec)

  1. cmd/test-utils_test.go

    	globalObjLayerMutex.Lock()
    	globalObjectAPI = nil
    	globalObjLayerMutex.Unlock()
    }
    
    // reset the value of the Global server config.
    // set it to `nil`.
    func resetGlobalConfig() {
    	// hold the mutex lock before a new config is assigned.
    	globalServerConfigMu.Lock()
    	// Save the loaded config globally.
    	globalServerConfig = nil
    	globalServerConfigMu.Unlock()
    }
    
    func resetGlobalEndpoints() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    	func() {
    		f.lock.Lock()
    		defer f.lock.Unlock()
    		if f.inflight < f.capacity {
    			f.inflight++
    			canExecute = true
    		}
    	}()
    	if !canExecute {
    		return
    	}
    
    	if f.preExecutePanic {
    		panic("pre-exec-panic")
    	}
    	execFn()
    	if f.postExecutePanic {
    		panic("post-exec-panic")
    	}
    
    	f.lock.Lock()
    	defer f.lock.Unlock()
    	f.inflight--
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go

    func (r *crdHandler) createCustomResourceDefinition(obj interface{}) {
    	crd := obj.(*apiextensionsv1.CustomResourceDefinition)
    	r.customStorageLock.Lock()
    	defer r.customStorageLock.Unlock()
    	// this could happen if the create event is merged from create-update events
    	storageMap := r.customStorage.Load().(crdStorageMap)
    	oldInfo, found := storageMap[crd.UID]
    	if !found {
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  4. pkg/proxy/ipvs/proxier.go

    func (proxier *Proxier) OnServiceSynced() {
    	proxier.mu.Lock()
    	proxier.servicesSynced = true
    	proxier.setInitialized(proxier.endpointSlicesSynced)
    	proxier.mu.Unlock()
    
    	// Sync unconditionally - this is called once per lifetime.
    	proxier.syncProxyRules()
    }
    
    // OnEndpointSliceAdd is called whenever creation of a new endpoint slice object
    // is observed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
  5. cmd/iam.go

    	}
    }
    
    // Initialized checks if IAM is initialized
    func (sys *IAMSys) Initialized() bool {
    	if sys == nil {
    		return false
    	}
    	sys.Lock()
    	defer sys.Unlock()
    	return sys.store != nil
    }
    
    // Load - loads all credentials, policies and policy mappings.
    func (sys *IAMSys) Load(ctx context.Context, firstTime bool) error {
    	loadStartTime := time.Now()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  6. cmd/erasure-healing_test.go

    		copy(disks, newDisks)
    		objLayer.(*erasureServerPools).serverPools[0].erasureDisksMu.Unlock()
    	}
    	getDisk := func(n int) StorageAPI {
    		objLayer.(*erasureServerPools).serverPools[0].erasureDisksMu.Lock()
    		disk := disks[n]
    		objLayer.(*erasureServerPools).serverPools[0].erasureDisksMu.Unlock()
    		return disk
    	}
    
    	// Remove 4 disks.
    	setDisks(nil, nil, nil, nil)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  7. pkg/proxy/winkernel/proxier.go

    // called and the state is fully propagated to local cache.
    func (proxier *Proxier) OnServiceSynced() {
    	proxier.mu.Lock()
    	proxier.servicesSynced = true
    	proxier.setInitialized(proxier.endpointSlicesSynced)
    	proxier.mu.Unlock()
    
    	// Sync unconditionally - this is called once per lifetime.
    	proxier.syncProxyRules()
    }
    
    // OnEndpointSliceAdd is called whenever creation of a new endpoint slice object
    // is observed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 59K bytes
    - Viewed (0)
  8. src/runtime/malloc.go

    	// Once arenasHugePages is set, all new L2 entries will be eligible for
    	// huge pages. We'll set all the old entries after we release the lock.
    	lock(&h.lock)
    	if h.arenasHugePages {
    		unlock(&h.lock)
    		return
    	}
    	h.arenasHugePages = true
    	unlock(&h.lock)
    
    	// N.B. The arenas L1 map is quite small on all platforms, so it's fine to
    	// just iterate over the whole thing.
    	for i := range h.arenas {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modload/init.go

    }
    
    func (mms *MainModuleSet) Index(m module.Version) *modFileIndex {
    	mms.indexMu.Lock()
    	defer mms.indexMu.Unlock()
    	return mms.indices[m]
    }
    
    func (mms *MainModuleSet) SetIndex(m module.Version, index *modFileIndex) {
    	mms.indexMu.Lock()
    	defer mms.indexMu.Unlock()
    	mms.indices[m] = index
    }
    
    func (mms *MainModuleSet) ModFile(m module.Version) *modfile.File {
    	return mms.modFiles[m]
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  10. cmd/peer-rest-server.go

    	profiles := strings.Split(vars[peerRESTProfiler], ",")
    	if len(profiles) == 0 {
    		s.writeErrorResponse(w, errors.New("profiler name is missing"))
    		return
    	}
    	globalProfilerMu.Lock()
    	defer globalProfilerMu.Unlock()
    	if globalProfiler == nil {
    		globalProfiler = make(map[string]minioProfiler, 10)
    	}
    
    	// Stop profiler of all types if already running
    	for k, v := range globalProfiler {
    		for _, p := range profiles {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 52.1K bytes
    - Viewed (0)
Back to top