Lines Matching refs:thread
80 #include <kern/thread.h>
98 thread_t thread,
132 thread_t thread,
150 if (!thread->active)
209 kr = thread_getstatus(thread, flavor,
230 kr = thread_setstatus(thread, flavor,
242 retrieve_thread_self_fast(thread),
243 retrieve_task_self_fast(thread->task),
249 retrieve_thread_self_fast(thread),
250 retrieve_task_self_fast(thread->task),
264 kr = thread_getstatus(thread, flavor,
271 retrieve_thread_self_fast(thread),
272 retrieve_task_self_fast(thread->task),
281 retrieve_thread_self_fast(thread),
282 retrieve_task_self_fast(thread->task),
291 kr = thread_setstatus(thread, flavor,
344 * The current thread caught an exception.
345 * We make an up-call to the thread's exception server.
360 thread_t thread;
368 thread = current_thread();
373 mutex = &thread->mutex;
374 if (KERN_SUCCESS == check_exc_receiver_dependancy(exception, thread->exc_actions, mutex))
376 kr = exception_deliver(thread, exception, code, codeCnt, thread->exc_actions, mutex);
388 kr = exception_deliver(thread, exception, code, codeCnt, task->exc_actions, mutex);
401 kr = exception_deliver(thread, exception, code, codeCnt, host_priv->exc_actions, mutex);
468 kern_return_t sys_perf_notify(thread_t thread, int pid)
480 struct task *task = thread->task;
493 thread,