Home | History | Annotate | Download | only in callgrind

Lines Matching defs: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];
192 /* now check for thread switch */
203 /* switch to the thread the handler runs in */
244 /* thread switching potentially needed, eg. with instrumentation off */
281 thread[CLG_(current_tid)]->sighandler_cost,
291 /* There is no way to reliable get the thread ID we are switching to
300 /*--- Execution states in a thread & signal handlers ---*/
303 /* Each thread can be interrupted by a signal handler, and they
305 * of the same thread, we don't need additional stacks.
343 /* The first element is for the main thread */
369 /* Get top context info struct of current thread */