Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 48 for Unlock1 (0.13 sec)

  1. src/net/http/client_test.go

    }
    
    func (j *TestJar) SetCookies(u *url.URL, cookies []*Cookie) {
    	j.m.Lock()
    	defer j.m.Unlock()
    	if j.perURL == nil {
    		j.perURL = make(map[string][]*Cookie)
    	}
    	j.perURL[u.Host] = cookies
    }
    
    func (j *TestJar) Cookies(u *url.URL) []*Cookie {
    	j.m.Lock()
    	defer j.m.Unlock()
    	return j.perURL[u.Host]
    }
    
    func TestRedirectCookiesJar(t *testing.T) { run(t, testRedirectCookiesJar) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  2. src/runtime/mgcmark.go

    // cached stacks around isn't a problem.
    func markrootFreeGStacks() {
    	// Take list of dead Gs with stacks.
    	lock(&sched.gFree.lock)
    	list := sched.gFree.stack
    	sched.gFree.stack = gList{}
    	unlock(&sched.gFree.lock)
    	if list.empty() {
    		return
    	}
    
    	// Free stacks.
    	q := gQueue{list.head, list.head}
    	for gp := list.head.ptr(); gp != nil; gp = gp.schedlink.ptr() {
    		stackfree(gp.stack)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  3. cmd/erasure-object.go

    	}
    
    	if !dstOpts.NoLock {
    		lk := er.NewNSLock(dstBucket, dstObject)
    		lkctx, err := lk.GetLock(ctx, globalOperationTimeout)
    		if err != nil {
    			return oi, err
    		}
    		ctx = lkctx.Context()
    		defer lk.Unlock(lkctx)
    	}
    	// Read metadata associated with the object from all disks.
    	storageDisks := er.getDisks()
    
    	var metaArr []FileInfo
    	var errs []error
    
    	// Read metadata associated with the object from all disks.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  4. pkg/proxy/iptables/proxier.go

    	proxier.mu.Lock()
    	proxier.needFullSync = true
    	proxier.mu.Unlock()
    
    	proxier.syncProxyRules()
    }
    
    // This is where all of the iptables-save/restore calls happen.
    // The only other iptables rules are those that are setup in iptablesInit()
    // This assumes proxier.mu is NOT held
    func (proxier *Proxier) syncProxyRules() {
    	proxier.mu.Lock()
    	defer proxier.mu.Unlock()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 65.1K bytes
    - Viewed (0)
  5. 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)
  6. src/crypto/tls/common.go

    		return
    	}
    
    	// We need to write some data, so get an exclusive lock and re-check any conditions.
    	c.mutex.RUnlock()
    	defer c.mutex.RLock()
    	c.mutex.Lock()
    	defer c.mutex.Unlock()
    	if c.SessionTicketKey == [32]byte{} {
    		if _, err := io.ReadFull(c.rand(), c.SessionTicketKey[:]); err != nil {
    			panic(fmt.Sprintf("tls: unable to generate random session ticket key: %v", err))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  7. 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)
  8. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    				cacher.bookmarkWatchers.popExpiredWatchersThreadUnsafe()
    				cacher.Unlock()
    			}
    		}
    	}()
    
    	// wait for adding/removing watchers to end
    	wg.Wait()
    
    	if watchErr != nil {
    		t.Fatal(watchErr)
    	}
    
    	// wait out the expiration period and pop expired watchers
    	time.Sleep(2 * time.Second)
    	cacher.Lock()
    	defer cacher.Unlock()
    	cacher.bookmarkWatchers.popExpiredWatchersThreadUnsafe()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top