• Home
  • Raw
  • Download

Lines Matching refs:tid

56    ThreadId tid;  in VG_()  local
66 for (tid = 1; tid < VG_N_THREADS; tid++) { in VG_()
68 ANNOTATE_BENIGN_RACE_SIZED(&VG_(threads)[tid].status, in VG_()
69 sizeof(VG_(threads)[tid].status), "")); in VG_()
71 ANNOTATE_BENIGN_RACE_SIZED(&VG_(threads)[tid].os_state.exitcode, in VG_()
72 sizeof(VG_(threads)[tid].os_state.exitcode), in VG_()
101 ThreadState *VG_(get_ThreadState)(ThreadId tid) in VG_()
103 vg_assert(tid >= 0 && tid < VG_N_THREADS); in VG_()
104 vg_assert(VG_(threads)[tid].tid == tid); in VG_()
105 return &VG_(threads)[tid]; in VG_()
108 Bool VG_(is_valid_tid) ( ThreadId tid ) in VG_()
111 if (tid == 0) return False; in VG_()
112 if (tid >= VG_N_THREADS) return False; in VG_()
113 if (VG_(threads)[tid].status == VgTs_Empty) return False; in VG_()
123 Bool VG_(is_running_thread)(ThreadId tid) in VG_()
125 ThreadState *tst = VG_(get_ThreadState)(tid); in VG_()
129 VG_(running_tid) == tid && // and that we've got the lock in VG_()
134 inline Bool VG_(is_exiting)(ThreadId tid) in VG_()
136 vg_assert(VG_(is_valid_tid)(tid)); in VG_()
137 return VG_(threads)[tid].exitreason != VgSrc_None; in VG_()
144 ThreadId tid; in VG_() local
146 for(tid = 1; tid < VG_N_THREADS; tid++) in VG_()
147 if (VG_(threads)[tid].status != VgTs_Empty && in VG_()
148 VG_(threads)[tid].status != VgTs_Zombie) in VG_()
158 ThreadId tid; in VG_() local
160 for(tid = 1; tid < VG_N_THREADS; tid++) in VG_()
161 if (VG_(threads)[tid].status == VgTs_Runnable) in VG_()
171 ThreadId tid; in VG_() local
173 for(tid = 1; tid < VG_N_THREADS; tid++) in VG_()
174 if (VG_(threads)[tid].status != VgTs_Empty in VG_()
175 && VG_(threads)[tid].os_state.lwpid == lwp) in VG_()
176 return tid; in VG_()