Lines Matching refs:thread

116 #include <kern/thread.h>
166 kern_return_t sys_perf_notify(thread_t thread, int pid);
261 * If a thread in this task has already
296 /* TODO: This should be done after becoming exit thread */
305 * corrupting the freed memory, let the exit thread
373 /* Last thread to terminate will call proc_exit() */
591 * no need to throttle this thread since its going away
776 thread_t thread = q->sigwait_thread;
782 * Need to do this as it could be a thread which is not
783 * the first thread in the task. So any attempts to kill
786 thread_resume(thread);
787 clear_wait(thread, THREAD_INTERRUPTED);
788 threadsignal(thread, SIGKILL, 0);
875 * and halt this thread (only if a
884 /* mark the thread as the one that is doing proc_exit
991 * no need to throttle this thread since its going away
1207 thread_t thread;
1217 thread = current_thread();
1218 uth = (struct uthread *)get_bsdthread_info(thread);
1270 p->p_listflag |= P_LIST_WAITING; /* only allow single thread to wait() */
1327 * thread via p_uthlist.
1428 thread_t thread;
1438 thread = current_thread();
1439 uth = (struct uthread *)get_bsdthread_info(thread);
1448 * Description: Suspend the calling thread until one child of the process
1449 * containing the calling thread changes state.
1746 * If a thread in this task has already
1769 * thread that has vfork in proress terminates. So there is no
1996 thread_t thread = q->sigwait_thread;
2002 * Need to do this as it could be a thread which is not
2003 * the first thread in the task. So any attempts to kill
2006 thread_resume(thread);
2007 clear_wait(thread, THREAD_INTERRUPTED);
2008 threadsignal(thread, SIGKILL, 0);
2119 * and halt this thread (only if a