Home | History | Annotate | Download | only in callgrind

Lines Matching refs:thread

51  * Per-thread data:
58 * datastructures for the process (= Thread 1).
61 /* current running thread */
64 static thread_info* thread[VG_N_THREADS];
68 return thread;
73 return thread[CLG_(current_tid)];
80 thread[i] = 0;
90 if (!thread[t]) continue;
92 (*func)(thread[t]);
131 CLG_DEBUG(0, ">> thread %d (was %d)\n", tid, CLG_(current_tid));
134 /* save thread state */
135 thread_info* t = thread[CLG_(current_tid)];
147 if (!CLG_(clo).separate_threads) t = thread[1];
158 /* load thread state */
160 if (thread[tid] == 0) thread[tid] = new_thread();
161 t = thread[tid];
171 if (!CLG_(clo).separate_threads) t = thread[1];
194 /* now check for thread switch */
205 /* switch to the thread the handler runs in */
246 /* thread switching potentially needed, eg. with instrumentation off */
283 thread[CLG_(current_tid)]->sighandler_cost,
293 /* There is no way to reliable get the thread ID we are switching to
302 /*--- Execution states in a thread & signal handlers ---*/
305 /* Each thread can be interrupted by a signal handler, and they
307 * of the same thread, we don't need additional stacks.
345 /* The first element is for the main thread */
371 /* Get top context info struct of current thread */