| /xnu-11215/osfmk/kern/ |
| H A D | thread.c | 1345 memcpy(new_thread, &init_thread, sizeof(*new_thread)); in thread_create_internal() 1532 new_thread->importance = new_priority - new_thread->task_priority; in thread_create_internal() 1539 new_thread->pri_shift = sched_clutch_thread_pri_shift(new_thread, new_thread->th_sched_bucket); in thread_create_internal() 1541 new_thread->pri_shift = sched_pri_shifts[new_thread->th_sched_bucket]; in thread_create_internal() 1668 *new_thread = thread; in thread_create_with_options_internal() 1749 *new_thread = thread; in thread_create_waiting_internal() 1828 *new_thread = thread; in thread_create_running_internal2() 1852 new_thread, FALSE); in thread_create_running() 1865 new_thread, TRUE); in thread_create_running_from_user() 1933 *new_thread = thread; in kernel_thread_create() [all …]
|
| H A D | sched_prim.c | 2968 if (new_thread) { in thread_select() 2971 return new_thread; in thread_select() 3045 return new_thread; in thread_select() 3078 return new_thread; in thread_select() 3142 return new_thread; in thread_select() 4038 thread_t new_thread; in thread_block_reason() local 4533 return new_thread; in rt_runq_dequeue() 4743 return new_thread; in sched_rtlocal_steal_thread() 4773 return new_thread; in sched_rt_choose_thread() 4786 return new_thread; in sched_rt_choose_thread() [all …]
|
| H A D | thread.h | 1202 thread_t *new_thread); 1208 thread_t *new_thread); 1224 thread_t new_thread); 1447 thread_t *new_thread, 1453 thread_t *new_thread); 1458 thread_t *new_thread, 1845 extern kern_return_t thread_create_immovable(task_t task, thread_t *new_thread); 1988 thread_t *new_thread);
|
| H A D | machine.h | 126 extern void machine_thread_going_on_core(thread_t new_thread,
|
| H A D | sched_prim.h | 148 thread_t new_thread); 155 thread_t new_thread);
|
| H A D | task.c | 2920 thread_return = new_thread; in task_duplicate_map_and_threads() 2921 new_task->crashed_thread_id = thread_tid(new_thread); in task_duplicate_map_and_threads() 2923 first_thread = new_thread; in task_duplicate_map_and_threads() 2926 thread_deallocate(new_thread); in task_duplicate_map_and_threads() 2929 kr = thread_dup2(thread_array[i], new_thread); in task_duplicate_map_and_threads() 2931 thread_mtx_lock(new_thread); in task_duplicate_map_and_threads() 2932 new_thread->corpse_dup = TRUE; in task_duplicate_map_and_threads() 2933 thread_mtx_unlock(new_thread); in task_duplicate_map_and_threads() 2938 bsd_copythreadname(get_bsdthread_info(new_thread), in task_duplicate_map_and_threads() 2940 new_thread->thread_tag = thread_array[i]->thread_tag & in task_duplicate_map_and_threads() [all …]
|
| H A D | task.h | 815 thread_t new_thread);
|
| /xnu-11215/tests/ |
| H A D | ioperf.c | 108 pthread_t new_thread; in create_thread() local 122 T_ASSERT_POSIX_ZERO(pthread_create(&new_thread, &attr, start_routine, in create_thread() 127 threads[thread_id].thread = new_thread; in create_thread() 129 return new_thread; in create_thread()
|
| /xnu-11215/osfmk/arm/ |
| H A D | machine_routines_common.c | 500 machine_thread_going_on_core(thread_t new_thread, in machine_thread_going_on_core() argument 510 perfcontrol_state_t state = FIND_PERFCONTROL_STATE(new_thread); in machine_thread_going_on_core() 512 on_core.thread_id = new_thread->thread_id; in machine_thread_going_on_core() 514 on_core.qos_class = (uint16_t)proc_get_effective_thread_policy(new_thread, TASK_POLICY_QOS); in machine_thread_going_on_core() 516 on_core.is_32_bit = thread_is_64bit_data(new_thread) ? FALSE : TRUE; in machine_thread_going_on_core() 517 on_core.is_kernel_thread = get_threadtask(new_thread) == kernel_task; in machine_thread_going_on_core() 519 struct thread_group *tg = thread_group_get(new_thread); in machine_thread_going_on_core()
|
| /xnu-11215/tools/tests/zero-to-n/ |
| H A D | zero-to-n.c | 396 pthread_t new_thread; in create_churn_threads() local 399 err = pthread_create_with_workgroup_np(&new_thread, g_rt_workgroup, in create_churn_threads() 402 err = pthread_create(&new_thread, &attr, churn_thread, NULL); in create_churn_threads() 408 g_churn_threads[i] = new_thread; in create_churn_threads() 530 pthread_t new_thread; in create_rt_churn_threads() local 533 err = pthread_create_with_workgroup_np(&new_thread, g_rt_workgroup, in create_rt_churn_threads() 536 err = pthread_create(&new_thread, &attr, rt_churn_thread, NULL); in create_rt_churn_threads() 542 g_rt_churn_threads[i] = new_thread; in create_rt_churn_threads()
|
| /xnu-11215/tests/ktrace/ |
| H A D | kperf_tests.c | 209 uint64_t new_thread = tp->arg2; variable 211 if (idle_tids[tp->cpuid] != new_thread) { 212 tids_on_cpu[tp->cpuid] = new_thread;
|
| /xnu-11215/bsd/sys/ |
| H A D | pthread_shims.h | 299 kern_return_t (*thread_create_immovable)(task_t parent_task, thread_t *new_thread);
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_exec.c | 5005 thread_t new_thread = imgp->ip_new_thread; in proc_exec_switch_task() local 5013 assert(get_threadtask(new_thread) == new_task); in proc_exec_switch_task() 5025 uthread_t new_uthread = get_bsdthread_info(new_thread); in proc_exec_switch_task() 5041 act_set_astbsd(new_thread); in proc_exec_switch_task() 5066 thread_copy_resource_info(new_thread, current_thread()); in proc_exec_switch_task() 6229 thread_t new_thread; in exec_add_apple_strings() local 6445 if ((new_thread = imgp->ip_new_thread) != THREAD_NULL) { in exec_add_apple_strings() 6446 thread_reference(new_thread); in exec_add_apple_strings() 6447 sright = convert_thread_to_port_pinned(new_thread); in exec_add_apple_strings() 6448 task_t new_task = get_threadtask(new_thread); in exec_add_apple_strings()
|
| H A D | kern_memorystatus.c | 1505 thread_t *new_thread);
|
| /xnu-11215/bsd/pthread/ |
| H A D | pthread_workqueue.c | 1071 thread_t *new_thread) in workq_add_new_idle_thread() argument 1113 if (new_thread) { in workq_add_new_idle_thread() 1114 *new_thread = th; in workq_add_new_idle_thread() 3350 thread_t new_thread = NULL; in workq_kern_threadreq_permanent_bind() local 3376 true, &new_thread); in workq_kern_threadreq_permanent_bind() 3378 struct uthread *uth = get_bsdthread_info(new_thread); in workq_kern_threadreq_permanent_bind() 3395 kqueue_threadreq_bind_commit(p, new_thread); in workq_kern_threadreq_permanent_bind()
|
| /xnu-11215/osfmk/i386/ |
| H A D | pmCPU.c | 807 machine_thread_going_on_core(__unused thread_t new_thread, in machine_thread_going_on_core() argument
|
| /xnu-11215/bsd/dev/dtrace/ |
| H A D | fasttrap.c | 58 …riority(thread_continue_t continuation, void *parameter, integer_t priority, thread_t *new_thread);
|