Home | History | Annotate | Download | only in coregrind

Lines Matching refs:tid

55    ThreadId tid;
57 for (tid = 1; tid < VG_N_THREADS; tid++) {
59 ANNOTATE_BENIGN_RACE_SIZED(&VG_(threads)[tid].status,
60 sizeof(VG_(threads)[tid].status), ""));
62 ANNOTATE_BENIGN_RACE_SIZED(&VG_(threads)[tid].os_state.exitcode,
63 sizeof(VG_(threads)[tid].os_state.exitcode),
81 ThreadState *VG_(get_ThreadState)(ThreadId tid)
83 vg_assert(tid >= 0 && tid < VG_N_THREADS);
84 vg_assert(VG_(threads)[tid].tid == tid);
85 return &VG_(threads)[tid];
88 Bool VG_(is_valid_tid) ( ThreadId tid )
90 /* tid is unsigned, hence no < 0 test. */
91 if (tid == 0) return False;
92 if (tid >= VG_N_THREADS) return False;
93 if (VG_(threads)[tid].status == VgTs_Empty) return False;
103 Bool VG_(is_running_thread)(ThreadId tid)
105 ThreadState *tst = VG_(get_ThreadState)(tid);
108 // tst->os_state.lwpid == VG_(gettid)() && // check we're this tid
109 VG_(running_tid) == tid && // and that we've got the lock
114 inline Bool VG_(is_exiting)(ThreadId tid)
116 vg_assert(VG_(is_valid_tid)(tid));
117 return VG_(threads)[tid].exitreason != VgSrc_None;
124 ThreadId tid;
126 for(tid = 1; tid < VG_N_THREADS; tid++)
127 if (VG_(threads)[tid].status != VgTs_Empty &&
128 VG_(threads)[tid].status != VgTs_Zombie)
138 ThreadId tid;
140 for(tid = 1; tid < VG_N_THREADS; tid++)
141 if (VG_(threads)[tid].status == VgTs_Runnable)
151 ThreadId tid;
153 for(tid = 1; tid < VG_N_THREADS; tid++)
154 if (VG_(threads)[tid].status != VgTs_Empty
155 && VG_(threads)[tid].os_state.lwpid == lwp)
156 return tid;