Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for runtime_notifyListAdd (0.26 sec)

  1. src/sync/runtime.go

    // skipframes is the number of frames to omit during tracing, counting from
    // runtime_Semrelease's caller.
    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)
    
    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

    //
    //	c.L.Lock()
    //	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
    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

    // notifications. The caller must eventually call notifyListWait to wait for
    // such a notification, passing the returned ticket number.
    //
    //go:linkname notifyListAdd sync.runtime_notifyListAdd
    func notifyListAdd(l *notifyList) uint32 {
    	// This may be called concurrently, for example, when called from
    	// sync.Cond.Wait while holding a RWMutex in read mode.
    	return l.wait.Add(1) - 1
    }
    
    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