Lines Matching refs:coretid
171 thread->coretid = VG_INVALID_THREADID; in mk_Thread()
592 thr->coretid = 1; /* FIXME: hardwires an assumption about the in initialise_data_structures()
598 tl_assert(HG_(is_sane_ThreadId)(thr->coretid)); in initialise_data_structures()
599 tl_assert(thr->coretid != VG_INVALID_THREADID); in initialise_data_structures()
601 map_threads[thr->coretid] = thr; in initialise_data_structures()
614 static Thread* map_threads_maybe_lookup ( ThreadId coretid ) in map_threads_maybe_lookup() argument
617 tl_assert( HG_(is_sane_ThreadId)(coretid) ); in map_threads_maybe_lookup()
618 thr = map_threads[coretid]; in map_threads_maybe_lookup()
623 static inline Thread* map_threads_lookup ( ThreadId coretid ) in map_threads_lookup() argument
626 tl_assert( HG_(is_sane_ThreadId)(coretid) ); in map_threads_lookup()
627 thr = map_threads[coretid]; in map_threads_lookup()
641 tid = thr->coretid; in map_threads_maybe_reverse_lookup_SLOW()
653 tl_assert(map_threads[tid]->coretid == tid); in map_threads_reverse_lookup_SLOW()
657 static void map_threads_delete ( ThreadId coretid ) in map_threads_delete() argument
660 tl_assert(coretid != 0); in map_threads_delete()
661 tl_assert( HG_(is_sane_ThreadId)(coretid) ); in map_threads_delete()
662 thr = map_threads[coretid]; in map_threads_delete()
664 map_threads[coretid] = NULL; in map_threads_delete()
1373 ThreadId coretid; in get_current_Thread() local
1379 coretid = VG_(get_running_tid)(); in get_current_Thread()
1384 if (coretid == VG_INVALID_THREADID) in get_current_Thread()
1385 coretid = 1; /* KLUDGE */ in get_current_Thread()
1386 thr = map_threads_lookup( coretid ); in get_current_Thread()
1529 tl_assert(thr_c->coretid == VG_INVALID_THREADID); in evh__pre_thread_ll_create()
1530 thr_c->coretid = child; in evh__pre_thread_ll_create()
1600 tl_assert(thr_q->coretid == quit_tid); in evh__pre_thread_ll_exit()
1601 thr_q->coretid = VG_INVALID_THREADID; in evh__pre_thread_ll_exit()
1631 tl_assert(thr->coretid == i); in evh__atfork_child()
1632 thr->coretid = VG_INVALID_THREADID; in evh__atfork_child()