Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for runqgrab (0.15 sec)

  1. src/runtime/proc.go

    	return
    }
    
    // Grabs a batch of goroutines from pp's runnable queue into batch.
    // Batch is a ring buffer starting at batchHead.
    // Returns number of grabbed goroutines.
    // Can be executed by any P.
    func runqgrab(pp *p, batch *[256]guintptr, batchHead uint32, stealRunNextG bool) uint32 {
    	for {
    		h := atomic.LoadAcq(&pp.runqhead) // load-acquire, synchronize with other consumers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top