Lines Matching refs:thread

112 #include <kern/thread.h>
219 * has its task, thread, and uthread lent to the child process,
226 * operations on the task, thread, or uthread will result in
228 * state, when a task, thread, and uthread are realized for the
286 * rather than returning the actual thread. We can remove
336 * borrow the parent task, thread, and
344 * At first it may seem strange that we return the child thread
411 * child and the tash/thread/uthread from the parent in
492 /* temporarily drop thread-set-id state */
498 /* blow thread state information */
533 /* Failed to create thread */
538 /* copy current thread state into the child thread (only for fork) */
578 * Blow thread state information; this is what gives the child
594 * and thread state and address spaces of their parent process.
654 /* return the thread pointer to the caller */
680 * Description: "Return" to parent vfork thread() following execve/_exit;
682 * with the task, thread, and uthread.
712 /* restore thread-set-id state */
753 * It creates a new task and thread (and as a side effect of the
754 * thread creation, a uthread), which is then associated with the
809 /* Create a new thread for the child process */
818 * Tag thread as being the first thread in its task.
844 * extra Mach task and thread reference, for which the thread
849 * thread state structure of the new child, and does not
854 * After resuming the thread, this function returns directly to
922 * Returns: !NULL pointer to new child thread
956 * Failed to create thread; now we must deconstruct the new
1218 * Note that if the current thread has an assumed identity, this
1257 * there is a per-thread current working directory, set the childs
1420 uthread_alloc(task_t task, thread_t thread, int noinherit)
1436 uth->uu_thread = thread;
1439 * Thread inherits credential from the creating thread, if both
1442 * If the creating thread has no credential or is from another
1443 * task we can leave the new thread credential NULL. If it needs
1451 * XXX The new thread is, in theory, being created in context
1452 * XXX of parent thread, so a direct reference to the parent
1481 uth->uu_context.vc_thread = thread;
1516 * no need to throttle this thread since its going away
1520 * still inuse by the thread.
1525 * Per-thread audit state should never last beyond system
1526 * call return. Since we don't audit the thread creation/
1527 * removal, the thread state pointer should never be
1564 * Remove the thread from the process list and
1600 /* This routine frees the uthread structure held in thread structure */