Lines Matching refs:current_thread
72 static struct thread_s current_thread = THREAD_INIT; /* the current thread */ variable
110 (void)printf("current_thread.t_head=%p\n", current_thread.t_head); in show_thread()
121 (void)printf("current_thread.t_head=%p\n", current_thread.t_head); in thread_showcmd()
164 mp->m_plink->m_clink != current_thread.t_head; in has_parent()
234 if (msgnum < 1 || msgnum > current_thread.t_msgCount) in get_message()
236 mp = current_thread.t_msgtbl[msgnum - 1]; in get_message()
250 return current_thread.t_msgCount; in get_msgCount()
330 return current_thread.t_head ? current_thread.t_head->m_depth : 0; in thread_depth()
455 FIX_LINK(current_thread.t_head); in thread_fix_old_links()
462 for (i = 0; i < current_thread.t_msgCount; i++) in thread_fix_old_links()
463 FIX_LINK(current_thread.t_msgtbl[i]); in thread_fix_old_links()
544 thread_init(¤t_thread, message, msgCount); in thread_fix_new_links()
551 current_thread.t_msgtbl = in thread_fix_new_links()
552 erealloc(current_thread.t_msgtbl, in thread_fix_new_links()
553 msgCount * sizeof(*current_thread.t_msgtbl)); in thread_fix_new_links()
555 assert(current_thread.t_head != NULL); in thread_fix_new_links()
556 if (current_thread.t_head->m_depth == 0) in thread_fix_new_links()
557 reindex(¤t_thread); in thread_fix_new_links()
582 reindex(¤t_thread); in set_state()
583 redepth(¤t_thread); in set_state()
593 mp = current_thread.t_head; in first_visible_message()
608 mp = current_thread.t_head; in first_visible_message()
617 reindex(¤t_thread); in restore_state()
618 redepth(¤t_thread); in restore_state()
626 if (mp->m_plink->m_clink == current_thread.t_head) in thread_top()
727 for (mp = first_message(current_thread.t_head); in flattencmd()
731 redepth(¤t_thread); in flattencmd()
794 if (current_thread.t_head->m_plink) in link_array()
795 current_thread.t_head->m_plink->m_clink = marray[0].mp; in link_array()
797 current_thread.t_head = marray[0].mp; in link_array()
942 assert(mp == current_thread.t_head); in thread_on_reference()
1019 if (current_thread.t_head == child) { in thread_on_reference()
1020 current_thread.t_head = child->m_flink; in thread_on_reference()
1021 assert(current_thread.t_head != NULL); in thread_on_reference()
1030 parent->m_clink = current_thread.t_head; in thread_on_reference()
1054 reindex(¤t_thread); in tag1()
1104 for (mp = first_message(current_thread.t_head); mp; mp = next_message(mp)) in tagbelowcmd()
1202 parent = current_thread.t_head->m_plink; in upcmd()
1209 assert(current_thread.t_head->m_depth > 0); in upcmd()
1212 current_thread.t_head = mp; in upcmd()
1218 reindex(¤t_thread); in upcmd()
1239 current_thread.t_head = child; in downcmd()
1241 reindex(¤t_thread); in downcmd()
1262 current_thread.t_head = mp; in tsetcmd()
1263 reindex(¤t_thread); in tsetcmd()
1295 current_thread.t_head = lastmp; in reversecmd_core()
1302 reversecmd_core(¤t_thread); in reversecmd()
1639 kp->loadfn(marray, mcount, current_thread.t_head, str, in thread_current_on()
1661 thread_on_reference(current_thread.t_head); in threadcmd()
1697 reversecmd_core(¤t_thread); in sortcmd()
1722 reindex(¤t_thread); in deldupscmd()
1723 redepth(¤t_thread); in deldupscmd()
1724 depth = current_thread.t_head->m_depth; in deldupscmd()
1725 for (mp = first_message(current_thread.t_head); mp; mp = next_message(mp)) { in deldupscmd()