Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for notifyList (0.16 sec)

  1. src/sync/runtime2_lockrank.go

    // license that can be found in the LICENSE file.
    
    //go:build goexperiment.staticlockranking
    
    package sync
    
    import "unsafe"
    
    // Approximation of notifyList in runtime/sema.go. Size and alignment must
    // agree.
    type notifyList struct {
    	wait   uint32
    	notify uint32
    	rank   int     // rank field of the mutex
    	pad    int     // pad field of the mutex
    	lock   uintptr // key field of the mutex
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 546 bytes
    - Viewed (0)
  2. src/sync/runtime.go

    // 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)
    
    // Ensure that sync and runtime agree on size of 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)
  3. src/sync/runtime2.go

    // license that can be found in the LICENSE file.
    
    //go:build !goexperiment.staticlockranking
    
    package sync
    
    import "unsafe"
    
    // Approximation of notifyList in runtime/sema.go. Size and alignment must
    // agree.
    type notifyList struct {
    	wait   uint32
    	notify uint32
    	lock   uintptr // key field of the mutex
    	head   unsafe.Pointer
    	tail   unsafe.Pointer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 465 bytes
    - Viewed (0)
  4. src/runtime/sema.go

    	}
    	unlock(&l.lock)
    }
    
    //go:linkname notifyListCheck sync.runtime_notifyListCheck
    func notifyListCheck(sz uintptr) {
    	if sz != unsafe.Sizeof(notifyList{}) {
    		print("runtime: bad notifyList size - sync=", sz, " runtime=", unsafe.Sizeof(notifyList{}), "\n")
    		throw("bad notifyList size")
    	}
    }
    
    //go:linkname sync_nanotime sync.runtime_nanotime
    func sync_nanotime() int64 {
    	return nanotime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. src/runtime/mklockrank.go

    < SCHED
    # Below SCHED is the scheduler implementation.
    < allocmR,
      execR;
    allocmR, execR, hchan < sched;
    sched < allg, allp;
    
    # Channels
    NONE < notifyList;
    hchan, notifyList < sudog;
    
    hchan, pollDesc, wakeableSleep < timers;
    timers, timerSend < timer < netpollInit;
    
    # Semaphores
    NONE < root;
    
    # Itabs
    NONE
    < itab
    < reflectOffs;
    
    # User arena state
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. src/sync/cond.go

    type Cond struct {
    	noCopy noCopy
    
    	// L is held while observing or changing the condition
    	L Locker
    
    	notify  notifyList
    	checker copyChecker
    }
    
    // NewCond returns a new Cond with Locker l.
    func NewCond(l Locker) *Cond {
    	return &Cond{L: l}
    }
    
    // Wait atomically unlocks c.L and suspends execution
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. src/runtime/lockrank.go

    	lockRankAllocmR:         "allocmR",
    	lockRankExecR:           "execR",
    	lockRankSched:           "sched",
    	lockRankAllg:            "allg",
    	lockRankAllp:            "allp",
    	lockRankNotifyList:      "notifyList",
    	lockRankSudog:           "sudog",
    	lockRankTimers:          "timers",
    	lockRankTimer:           "timer",
    	lockRankNetpollInit:     "netpollInit",
    	lockRankRoot:            "root",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 19.9K bytes
    - Viewed (0)
Back to top