Lines Matching refs:tid
129 DrdThreadId DRD_(VgThreadIdToDrdThreadId)(const ThreadId tid);
130 DrdThreadId DRD_(NewVgThreadIdToDrdThreadId)(const ThreadId tid);
131 DrdThreadId DRD_(PtThreadIdToDrdThreadId)(const PThreadId tid);
132 ThreadId DRD_(DrdThreadIdToVgThreadId)(const DrdThreadId tid);
137 void DRD_(thread_delete)(const DrdThreadId tid, Bool detached);
138 void DRD_(thread_finished)(const DrdThreadId tid);
139 void DRD_(drd_thread_atfork_child)(const DrdThreadId tid);
140 void DRD_(thread_pre_cancel)(const DrdThreadId tid);
141 void DRD_(thread_set_stack_startup)(const DrdThreadId tid,
143 Addr DRD_(thread_get_stack_min)(const DrdThreadId tid);
144 Addr DRD_(thread_get_stack_min_min)(const DrdThreadId tid);
145 Addr DRD_(thread_get_stack_max)(const DrdThreadId tid);
146 SizeT DRD_(thread_get_stack_size)(const DrdThreadId tid);
147 Bool DRD_(thread_get_on_alt_stack)(const DrdThreadId tid);
148 void DRD_(thread_set_on_alt_stack)(const DrdThreadId tid,
151 void DRD_(thread_set_pthreadid)(const DrdThreadId tid, const PThreadId ptid);
152 Bool DRD_(thread_get_joinable)(const DrdThreadId tid);
153 void DRD_(thread_set_joinable)(const DrdThreadId tid, const Bool joinable);
154 void DRD_(thread_entering_pthread_create)(const DrdThreadId tid);
155 void DRD_(thread_left_pthread_create)(const DrdThreadId tid);
156 const char* DRD_(thread_get_name)(const DrdThreadId tid);
157 void DRD_(thread_set_name)(const DrdThreadId tid, const char* const name);
161 int DRD_(thread_enter_synchr)(const DrdThreadId tid);
162 int DRD_(thread_leave_synchr)(const DrdThreadId tid);
163 int DRD_(thread_get_synchr_nesting_count)(const DrdThreadId tid);
164 void DRD_(thread_new_segment)(const DrdThreadId tid);
165 VectorClock* DRD_(thread_get_vc)(const DrdThreadId tid);
166 void DRD_(thread_get_latest_segment)(Segment** sg, const DrdThreadId tid);
169 void DRD_(thread_new_segment_and_combine_vc)(DrdThreadId tid,
171 void DRD_(thread_update_conflict_set)(const DrdThreadId tid,
176 void DRD_(thread_set_record_loads)(const DrdThreadId tid, const Bool enabled);
177 void DRD_(thread_set_record_stores)(const DrdThreadId tid, const Bool enabled);
179 void DRD_(thread_report_races)(const DrdThreadId tid);
180 void DRD_(thread_report_races_segment)(const DrdThreadId tid,
183 void DRD_(thread_report_conflicting_segments)(const DrdThreadId tid,
211 Bool DRD_(IsValidDrdThreadId)(const DrdThreadId tid)
213 return (0 <= (int)tid && tid < DRD_N_THREADS && tid != DRD_INVALID_THREADID
214 && ! (DRD_(g_threadinfo)[tid].vg_thread_exists == False
215 && DRD_(g_threadinfo)[tid].posix_thread_exists == False
216 && DRD_(g_threadinfo)[tid].detached_posix_thread == False));
284 void DRD_(thread_set_stack_min)(const DrdThreadId tid, const Addr stack_min)
287 tl_assert(0 <= (int)tid
288 && tid < DRD_N_THREADS
289 && tid != DRD_INVALID_THREADID);
291 DRD_(g_threadinfo)[tid].stack_min = stack_min;
295 tl_assert(DRD_(g_threadinfo)[tid].stack_min
296 < DRD_(g_threadinfo)[tid].stack_max
297 || DRD_(g_threadinfo)[tid].stack_max == 0);
299 if (UNLIKELY(stack_min < DRD_(g_threadinfo)[tid].stack_min_min))
301 DRD_(g_threadinfo)[tid].stack_min_min = stack_min;
339 Segment* DRD_(thread_get_segment)(const DrdThreadId tid)
342 tl_assert(0 <= (int)tid && tid < DRD_N_THREADS
343 && tid != DRD_INVALID_THREADID);
344 tl_assert(DRD_(g_threadinfo)[tid].last);
346 return DRD_(g_threadinfo)[tid].last;