Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for runtime_notifyListWait (0.2 sec)

  1. src/sync/runtime.go

    func runtime_Semrelease(s *uint32, handoff bool, skipframes int)
    
    // See runtime/sema.go for documentation.
    func runtime_notifyListAdd(l *notifyList) uint32
    
    // See runtime/sema.go for documentation.
    func runtime_notifyListWait(l *notifyList, t uint32)
    
    // See runtime/sema.go for documentation.
    func runtime_notifyListNotifyAll(l *notifyList)
    
    // See runtime/sema.go for documentation.
    func runtime_notifyListNotifyOne(l *notifyList)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 16:32:27 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. src/sync/cond.go

    //	for !condition() {
    //	    c.Wait()
    //	}
    //	... make use of condition ...
    //	c.L.Unlock()
    func (c *Cond) Wait() {
    	c.checker.check()
    	t := runtime_notifyListAdd(&c.notify)
    	c.L.Unlock()
    	runtime_notifyListWait(&c.notify, t)
    	c.L.Lock()
    }
    
    // Signal wakes one goroutine waiting on c, if there is any.
    //
    // It is allowed but not required for the caller to hold c.L
    // during the call.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/runtime/sema.go

    }
    
    // notifyListWait waits for a notification. If one has been sent since
    // notifyListAdd was called, it returns immediately. Otherwise, it blocks.
    //
    //go:linkname notifyListWait sync.runtime_notifyListWait
    func notifyListWait(l *notifyList, t uint32) {
    	lockWithRank(&l.lock, lockRankNotifyList)
    
    	// Return right away if this ticket has already been notified.
    	if less(t, l.notify) {
    		unlock(&l.lock)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top