Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 90 for unlock2 (0.13 sec)

  1. src/net/http/transport.go

    	t.idleLRU = connLRU{}
    	t.idleMu.Unlock()
    	for _, conns := range m {
    		for _, pconn := range conns {
    			pconn.close(errCloseIdleConns)
    		}
    	}
    	t.connsPerHostMu.Lock()
    	t.dialsInProgress.all(func(w *wantConn) {
    		if w.cancelCtx != nil && !w.waiting() {
    			w.cancelCtx()
    		}
    	})
    	t.connsPerHostMu.Unlock()
    	if t2 := t.h2transport; t2 != nil {
    		t2.CloseIdleConnections()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  2. src/crypto/tls/common.go

    		if len(configForClient.sessionTicketKeys) != 0 {
    			ret := configForClient.sessionTicketKeys
    			configForClient.mutex.RUnlock()
    			return ret
    		}
    		configForClient.mutex.RUnlock()
    	}
    
    	c.mutex.RLock()
    	defer c.mutex.RUnlock()
    	if c.SessionTicketsDisabled {
    		return nil
    	}
    	c.initLegacySessionTicketKeyRLocked()
    	if len(c.sessionTicketKeys) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    func (r *warningRecorder) AddWarning(_, text string) {
    	r.Lock()
    	defer r.Unlock()
    	r.warnings.Insert(text)
    	return
    }
    
    func (r *warningRecorder) hasWarning(text string) bool {
    	r.Lock()
    	defer r.Unlock()
    	return r.warnings.Has(text)
    }
    
    func (r *warningRecorder) len() int {
    	r.Lock()
    	defer r.Unlock()
    	return len(r.warnings)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  4. 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)
  5. src/runtime/mheap.go

    			if !ok {
    				unlock(&h.lock)
    				return nil
    			}
    			base, scav = h.pages.alloc(npages)
    			if base == 0 {
    				throw("grew heap, but no adequate free space found")
    			}
    		}
    	}
    	if s == nil {
    		// We failed to get an mspan earlier, so grab
    		// one now that we have the heap lock.
    		s = h.allocMSpanLocked()
    	}
    	unlock(&h.lock)
    
    HaveSpan:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  6. src/crypto/tls/conn.go

    				interruptRes <- nil
    			}
    		}()
    	}
    
    	c.handshakeMutex.Lock()
    	defer c.handshakeMutex.Unlock()
    
    	if err := c.handshakeErr; err != nil {
    		return err
    	}
    	if c.isHandshakeComplete.Load() {
    		return nil
    	}
    
    	c.in.Lock()
    	defer c.in.Unlock()
    
    	c.handshakeErr = c.handshakeFn(handshakeCtx)
    	if c.handshakeErr == nil {
    		c.handshakes++
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  7. src/runtime/mgc.go

    	gp guintptr
    
    	// Release this m on park. This is used to communicate with the unlock
    	// function, which cannot access the G's stack. It is unused outside of
    	// gcBgMarkWorker().
    	m muintptr
    }
    
    func gcBgMarkWorker(ready chan struct{}) {
    	gp := getg()
    
    	// We pass node to a gopark unlock function, so it can't be on
    	// the stack (see gopark). Prevent deadlock from recursively
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  8. 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)
  9. pkg/controller/nodelifecycle/node_lifecycle_controller.go

    func (n *nodeHealthMap) getDeepCopy(name string) *nodeHealthData {
    	n.lock.RLock()
    	defer n.lock.RUnlock()
    	return n.nodeHealths[name].deepCopy()
    }
    
    func (n *nodeHealthMap) set(name string, data *nodeHealthData) {
    	n.lock.Lock()
    	defer n.lock.Unlock()
    	n.nodeHealths[name] = data
    }
    
    type podUpdateItem struct {
    	namespace string
    	name      string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  10. pkg/kubelet/pod_workers.go

    	p.podLock.Lock()
    	defer p.podLock.Unlock()
    	if status, ok := p.podSyncStatuses[uid]; ok {
    		return status.IsTerminated()
    	}
    	// if the pod is not known, we return false (pod worker is not aware of it)
    	return false
    }
    
    func (p *podWorkers) CouldHaveRunningContainers(uid types.UID) bool {
    	p.podLock.Lock()
    	defer p.podLock.Unlock()
    	if status, ok := p.podSyncStatuses[uid]; ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 13:22:37 UTC 2024
    - 74.8K bytes
    - Viewed (0)
Back to top