Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,091 for unlock2 (0.15 sec)

  1. pkg/security/mock.go

    	d.mu.RLock()
    	defer d.mu.RUnlock()
    	si, f := d.items[resourceName]
    	if !f {
    		return nil, fmt.Errorf("resource %v not found", resourceName)
    	}
    	return si, nil
    }
    
    func (d *DirectSecretManager) Set(resourceName string, secret *SecretItem) {
    	d.mu.Lock()
    	defer d.mu.Unlock()
    	if secret == nil {
    		delete(d.items, resourceName)
    	} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/cache/expiring.go

    // collected.
    func (c *Expiring) Set(key interface{}, val interface{}, ttl time.Duration) {
    	now := c.clock.Now()
    	expiry := now.Add(ttl)
    
    	c.mu.Lock()
    	defer c.mu.Unlock()
    
    	c.generation++
    
    	c.cache[key] = entry{
    		val:        val,
    		expiry:     expiry,
    		generation: c.generation,
    	}
    
    	// Run GC inline before pushing the new entry.
    	c.gc(now)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 22 15:51:23 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. internal/dsync/lock-args.go

    package dsync
    
    //go:generate msgp -file $GOFILE
    
    // LockArgs is minimal required values for any dsync compatible lock operation.
    type LockArgs struct {
    	// Unique ID of lock/unlock request.
    	UID string
    
    	// Resources contains single or multiple entries to be locked/unlocked.
    	Resources []string
    
    	// Source contains the line number, function and file name of the code
    	// on the client node that requested the lock.
    	Source string
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 04:34:26 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. cmd/bootstrap-messages.go

    	bs.mu.Lock()
    	defer bs.mu.Unlock()
    
    	if len(bs.info) > bootstrapTraceLimit {
    		return
    	}
    	bs.info = append(bs.info, info)
    }
    
    func (bs *bootstrapTracer) Events() []madmin.TraceInfo {
    	traceInfo := make([]madmin.TraceInfo, 0, bootstrapTraceLimit)
    
    	bs.mu.RLock()
    	for _, i := range bs.info {
    		traceInfo = append(traceInfo, i)
    	}
    	bs.mu.RUnlock()
    
    	return traceInfo
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Aug 23 10:07:06 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. 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)
  6. pkg/proxy/healthcheck/proxier_health.go

    // the service rules to reflect the current state and should be considered healthy now.
    func (hs *ProxierHealthServer) Updated(ipFamily v1.IPFamily) {
    	hs.lock.Lock()
    	defer hs.lock.Unlock()
    	delete(hs.oldestPendingQueuedMap, ipFamily)
    	hs.lastUpdatedMap[ipFamily] = hs.clock.Now()
    }
    
    // QueuedUpdate should be called when the proxier receives a Service or Endpoints event
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 16 10:41:18 UTC 2023
    - 8K bytes
    - Viewed (0)
  7. pkg/monitoring/derived_gauge.go

    	return d.name
    }
    
    func (d *derivedGauge) Register() error {
    	return nil
    }
    
    func (d *derivedGauge) ValueFrom(valueFn func() float64, labelValues ...LabelValue) DerivedMetric {
    	d.mu.Lock()
    	defer d.mu.Unlock()
    	lv := slices.Map(labelValues, func(e LabelValue) attribute.KeyValue {
    		return e.keyValue
    	})
    	as := attribute.NewSet(lv...)
    	d.attrs[as] = valueFn
    	return d
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.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. pkg/kube/namespace/filter.go

    		f.selectorsChanged(mesh.Mesh().GetDiscoverySelectors(), true)
    	})
    
    	namespaces.AddEventHandler(controllers.EventHandler[*corev1.Namespace]{
    		AddFunc: func(ns *corev1.Namespace) {
    			f.lock.Lock()
    			defer f.lock.Unlock()
    			// In rare cases, a namespace may be created after objects in the namespace, because there is no synchronization between watches
    			// So we need to notify if we started selecting namespace
    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. 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)
Back to top