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;
833 sg->thr_next = NULL;
835 DRD_(g_threadinfo)[tid].sg_last->thr_next = sg;
860 sg->thr_prev->thr_next = sg->thr_next;
861 if (sg->thr_next)
862 sg->thr_next->thr_prev = sg->thr_prev;
864 DRD_(g_threadinfo)[tid].sg_first = sg->thr_next;
993 sg && (sg_next = sg->thr_next)
1038 tl_assert(sg1->thr_next);
1039 tl_assert(sg2->thr_next);
1040 tl_assert(sg1->thr_next == sg2);
1047 for (sg = DRD_(g_threadinfo)[i].sg_first; sg; sg = sg->thr_next) {
1048 if (!sg->thr_next || DRD_(sg_get_refcnt)(sg) > 1) {
1056 if (!sg->thr_next || DRD_(sg_get_refcnt)(sg) > 1) {
1100 for (sg = DRD_(g_threadinfo)[i].sg_first; sg; sg = sg->thr_next) {
1101 if (DRD_(sg_get_refcnt)(sg) == 1 && sg->thr_next) {
1102 Segment* const sg_next = sg->thr_next;
1104 && sg_next->thr_next
1324 for ( ; p; p = p->thr_next)
1392 q_next = q->thr_next;
1414 for (p = DRD_(g_threadinfo)[tid].sg_first; p; p = p->thr_next) {