Lines Matching refs:sgp
683 func (q *waitq) enqueue(sgp *sudog) {
684 sgp.next = nil
687 sgp.prev = nil
688 q.first = sgp
689 q.last = sgp
692 sgp.prev = x
693 x.next = sgp
694 q.last = sgp
699 sgp := q.first
700 if sgp == nil {
703 y := sgp.next
710 sgp.next = nil // mark as removed (see dequeueSudog)
713 // if sgp participates in a select and is already signaled, ignore it
714 if sgp.selectdone != nil {
716 if *sgp.selectdone != 0 || !atomic.Cas(sgp.selectdone, 0, 1) {
721 return sgp