Lines Matching defs:thread
51 * Per-thread data:
58 * datastructures for the process (= Thread 1).
61 /* current running thread */
64 static thread_info** thread;
68 return thread;
73 return thread[CLG_(current_tid)];
80 thread = CLG_MALLOC("cl.threads.it.1", VG_N_THREADS * sizeof thread[0]);
83 thread[i] = 0;
93 if (!thread[t]) continue;
95 (*func)(thread[t]);
134 CLG_DEBUG(0, ">> thread %u (was %u)\n", tid, CLG_(current_tid));
137 /* save thread state */
138 thread_info* t = thread[CLG_(current_tid)];
150 if (!CLG_(clo).separate_threads) t = thread[1];
161 /* load thread state */
163 if (thread[tid] == 0) thread[tid] = new_thread();
164 t = thread[tid];
174 if (!CLG_(clo).separate_threads) t = thread[1];
195 /* now check for thread switch */
206 /* switch to the thread the handler runs in */
247 /* thread switching potentially needed, eg. with instrumentation off */
284 thread[CLG_(current_tid)]->sighandler_cost,
294 /* There is no way to reliable get the thread ID we are switching to
303 /*--- Execution states in a thread & signal handlers ---*/
306 /* Each thread can be interrupted by a signal handler, and they
308 * of the same thread, we don't need additional stacks.
346 /* The first element is for the main thread */
372 /* Get top context info struct of current thread */