Lines Matching refs:thr_next
274 for (p = ti->sg_first; p; p = p->thr_next) {
275 if (p->thr_next && p->thr_next->thr_prev != p)
277 if (p->thr_next == 0 && p != ti->sg_last)
281 if (p->thr_prev && p->thr_prev->thr_next != p)
525 sg->thr_next = NULL;
837 sg->thr_next = NULL;
839 DRD_(g_threadinfo)[tid].sg_last->thr_next = sg;
864 sg->thr_prev->thr_next = sg->thr_next;
865 if (sg->thr_next)
866 sg->thr_next->thr_prev = sg->thr_prev;
868 DRD_(g_threadinfo)[tid].sg_first = sg->thr_next;
997 sg && (sg_next = sg->thr_next)
1042 tl_assert(sg1->thr_next);
1043 tl_assert(sg2->thr_next);
1044 tl_assert(sg1->thr_next == sg2);
1051 for (sg = DRD_(g_threadinfo)[i].sg_first; sg; sg = sg->thr_next) {
1052 if (!sg->thr_next || DRD_(sg_get_refcnt)(sg) > 1) {
1060 if (!sg->thr_next || DRD_(sg_get_refcnt)(sg) > 1) {
1104 for (sg = DRD_(g_threadinfo)[i].sg_first; sg; sg = sg->thr_next) {
1105 if (DRD_(sg_get_refcnt)(sg) == 1 && sg->thr_next) {
1106 Segment* const sg_next = sg->thr_next;
1108 && sg_next->thr_next
1328 for ( ; p; p = p->thr_next)
1396 q_next = q->thr_next;
1418 for (p = DRD_(g_threadinfo)[tid].sg_first; p; p = p->thr_next) {