Lines Matching refs:threads
47 ThreadState *VG_(threads);
58 VG_(threads) = VG_(arena_memalign) (VG_AR_CORE, "init_Threads",
60 VG_N_THREADS * sizeof VG_(threads)[0]);
64 ANNOTATE_BENIGN_RACE_SIZED(&VG_(threads)[tid].status,
65 sizeof(VG_(threads)[tid].status), ""));
67 ANNOTATE_BENIGN_RACE_SIZED(&VG_(threads)[tid].os_state.exitcode,
68 sizeof(VG_(threads)[tid].os_state.exitcode),
100 vg_assert(VG_(threads)[tid].tid == tid);
101 return &VG_(threads)[tid];
109 if (VG_(threads)[tid].status == VgTs_Empty) return False;
133 return VG_(threads)[tid].exitreason != VgSrc_None;
136 /* Return the number of non-dead Threads */
143 if (VG_(threads)[tid].status != VgTs_Empty &&
144 VG_(threads)[tid].status != VgTs_Zombie)
150 /* Return the number of threads in VgTs_Runnable state */
157 if (VG_(threads)[tid].status == VgTs_Runnable)
170 if (VG_(threads)[tid].status != VgTs_Empty
171 && VG_(threads)[tid].os_state.lwpid == lwp)