Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 432 for unlock2 (0.15 sec)

  1. pkg/test/framework/components/istio/configmap.go

    		ic.mu.Lock()
    		ic.injectConfig = myic
    		ic.mu.Unlock()
    	}
    
    	return myic, nil
    }
    
    func (ic *injectConfig) UpdateInjectionConfig(t resource.Context, update func(*inject.Config) error, cleanupStrategy cleanup.Strategy) error {
    	// Invalidate the member variable. The next time it's requested, it will get a fresh value.
    	ic.mu.Lock()
    	ic.injectConfig = nil
    	ic.mu.Unlock()
    
    	errG := multierror.Group{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  2. pkg/scheduler/internal/cache/cache.go

    	}
    
    	cache.mu.RLock()
    	defer cache.mu.RUnlock()
    
    	podState, ok := cache.podStates[key]
    	if !ok {
    		return nil, fmt.Errorf("pod %v(%v) does not exist in scheduler cache", key, klog.KObj(pod))
    	}
    
    	return podState.pod, nil
    }
    
    func (cache *cacheImpl) AddNode(logger klog.Logger, node *v1.Node) *framework.NodeInfo {
    	cache.mu.Lock()
    	defer cache.mu.Unlock()
    
    	n, ok := cache.nodes[node.Name]
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 09:56:48 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  3. pkg/adsc/adsc.go

    func (a *ADSC) GetHTTPListeners() map[string]*listener.Listener {
    	a.mutex.Lock()
    	defer a.mutex.Unlock()
    	return a.httpListeners
    }
    
    // GetTCPListeners returns all the tcp listeners.
    func (a *ADSC) GetTCPListeners() map[string]*listener.Listener {
    	a.mutex.RLock()
    	defer a.mutex.RUnlock()
    	return a.tcpListeners
    }
    
    // GetEdsClusters returns all the eds type clusters.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 05 22:18:49 UTC 2024
    - 35K bytes
    - Viewed (0)
  4. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/ConcurrentTestUtil.groovy

            } finally {
                lock.unlock()
            }
        }
    
        private void failed(Throwable t) {
            lock.lock()
            try {
                if (failureHandler != null) {
                    failureHandler.call(t)
                } else {
                    failures << t
                }
            } finally {
                lock.unlock()
            }
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  5. internal/grid/connection.go

    			}
    			if state == StateShutdown || state == StateConnectionError {
    				c.connChange.L.Unlock()
    				return
    			}
    			c.connChange.Wait()
    			select {
    			case <-ctx.Done():
    				c.connChange.L.Unlock()
    				return
    			default:
    			}
    		}
    		c.connChange.L.Unlock()
    		if len(queue) == 0 {
    			// Combine writes.
    			buf.Reset()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  6. pkg/controller/volume/attachdetach/cache/actual_state_of_world.go

    	volumeName v1.UniqueVolumeName, nodeName types.NodeName) error {
    	asw.Lock()
    	defer asw.Unlock()
    	return asw.removeVolumeFromReportAsAttached(volumeName, nodeName)
    }
    
    func (asw *actualStateOfWorld) AddVolumeToReportAsAttached(
    	logger klog.Logger,
    	volumeName v1.UniqueVolumeName, nodeName types.NodeName) {
    	asw.Lock()
    	defer asw.Unlock()
    	asw.addVolumeToReportAsAttached(logger, volumeName, nodeName)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 07:35:17 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  7. pilot/pkg/model/network.go

    	if gws == nil {
    		return false
    	}
    	gws.mu.RLock()
    	defer gws.mu.RUnlock()
    	return len(gws.byNetwork) > 0
    }
    
    // GetLBWeightScaleFactor returns the least common multiple of the number of gateways per network.
    func (gws *NetworkGateways) GetLBWeightScaleFactor() uint32 {
    	gws.mu.RLock()
    	defer gws.mu.RUnlock()
    	return gws.lcm
    }
    
    func (gws *NetworkGateways) AllGateways() []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)
  8. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DefaultDaemonConnection.java

                } finally {
                    lock.unlock();
                }
                if (executor != null) {
                    executor.stop();
                }
            }
    
            public void add(C command) {
                lock.lock();
                try {
                    queue.add(command);
                    condition.signalAll();
                } finally {
                    lock.unlock();
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 16K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-rebalance.go

    		return err
    	}
    	defer lock.Unlock(lkCtx)
    
    	ctx = lkCtx.Context()
    	noLockOpts := ObjectOptions{NoLock: true}
    	r := &rebalanceMeta{}
    	if err := r.loadWithOpts(ctx, z.serverPools[0], noLockOpts); err != nil {
    		return err
    	}
    
    	z.rebalMu.Lock()
    	defer z.rebalMu.Unlock()
    
    	switch opts {
    	case rebalSaveStoppedAt:
    		r.StoppedAt = time.Now()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher_test.go

    	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++
    		// forget() has to stop the watcher, as only stopping the watcher
    		// triggers stopping the process() goroutine which we are in the
    		// end waiting for in this test.
    		w.setDrainInputBufferLocked(drainWatcher)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 22.9K bytes
    - Viewed (0)
Back to top