Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for pushBackAll (0.12 sec)

  1. src/runtime/proc.go

    	gp.schedlink = 0
    	if q.tail != 0 {
    		q.tail.ptr().schedlink.set(gp)
    	} else {
    		q.head.set(gp)
    	}
    	q.tail.set(gp)
    }
    
    // pushBackAll adds all Gs in q2 to the tail of q. After this q2 must
    // not be used.
    func (q *gQueue) pushBackAll(q2 gQueue) {
    	if q2.tail == 0 {
    		return
    	}
    	q2.tail.ptr().schedlink = 0
    	if q.tail != 0 {
    		q.tail.ptr().schedlink = q2.head
    	} else {
    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