Lines Matching defs:parent_task
641 task_t parent_task,
666 new_thread->uthread = uthread_alloc(parent_task, new_thread, (options & TH_OPTION_NOCRED) != 0);
673 if (machine_thread_create(new_thread, parent_task) != KERN_SUCCESS) {
679 uthread_cleanup(parent_task, ut, parent_task->bsd_info);
688 new_thread->task = parent_task;
701 task_lock(parent_task);
703 if ( !parent_task->active || parent_task->halting ||
705 parent_task->suspend_count > 0) ||
706 (parent_task->thread_count >= task_threadmax &&
707 parent_task != kernel_task) ) {
708 task_unlock(parent_task);
716 uthread_cleanup(parent_task, ut, parent_task->bsd_info);
731 machine_thread_inherit_taskwide(new_thread, parent_task);
733 task_reference_internal(parent_task);
748 new_thread->map = parent_task->map;
751 queue_enter(&parent_task->threads, new_thread, thread_t, task_threads);
752 parent_task->thread_count++;
755 hw_atomic_add(&parent_task->active_thread_count, 1);
771 new_thread->t_chud = (TASK_PMC_FLAG == (parent_task->t_chud & TASK_PMC_FLAG)) ?
776 new_thread->sched_mode = SCHED(initial_thread_sched_mode)(parent_task);
778 new_thread->max_priority = parent_task->max_priority;
779 new_thread->task_priority = parent_task->priority;
780 new_thread->priority = (priority < 0)? parent_task->priority: priority;
793 if (parent_task->ext_appliedstate.apptype == PROC_POLICY_IOS_APPLE_DAEMON) {
818 kdbg_trace_data(parent_task->bsd_info, &dbg_arg2);
824 kdbg_trace_string(parent_task->bsd_info,