| /xnu-11215/tests/ |
| H A D | turnstile_multihop.c | 225 mach_port_t thread_port = pthread_mach_thread_np(pthread_self()); in get_user_promotion_basepri() local 237 mach_port_t thread_port = pthread_mach_thread_np(pthread_self()); in get_thread_base_priority() local 242 kr = thread_info(thread_port, THREAD_SCHED_TIMESHARE_INFO, in get_thread_base_priority() 493 get_pri(thread_t thread_port) in get_pri() argument 499 kr = thread_info(thread_port, THREAD_EXTENDED_INFO, in get_pri() 512 thread_t thread_port = pthread_mach_thread_np(pthread_self()); in set_thread_name() local 514 int pri = get_pri(thread_port); in set_thread_name() 521 thread_wait_to_block(mach_port_t thread_port) in thread_wait_to_block() argument 528 kr = thread_info(thread_port, THREAD_EXTENDED_INFO, in thread_wait_to_block() 537 thread_switch(thread_port, SWITCH_OPTION_DEPRESS, 0); in thread_wait_to_block() [all …]
|
| H A D | thread_policy.c | 34 mach_port_t thread_port = pthread_mach_thread_np(pthread_self()); in get_thread_requested_qos() local 36 kern_return_t kr = thread_policy_get(thread_port, THREAD_REQUESTED_STATE_POLICY, in get_thread_requested_qos()
|
| H A D | prioritize_process_launch_helper.c | 35 get_pri(thread_t thread_port) in get_pri() argument 41 kr = thread_info(thread_port, THREAD_EXTENDED_INFO, in get_pri() 55 thread_t thread_port = pthread_mach_thread_np(pthread_self()); in set_thread_name() local 57 int pri = get_pri(thread_port); in set_thread_name()
|
| H A D | prioritize_process_launch.c | 135 get_pri(thread_t thread_port) in get_pri() argument 141 kr = thread_info(thread_port, THREAD_EXTENDED_INFO, in get_pri() 154 thread_t thread_port = pthread_mach_thread_np(pthread_self()); in set_thread_name() local 156 int pri = get_pri(thread_port); in set_thread_name() 163 thread_wait_to_block(mach_port_t thread_port) in thread_wait_to_block() argument 170 kr = thread_info(thread_port, THREAD_EXTENDED_INFO, in thread_wait_to_block() 179 thread_switch(thread_port, SWITCH_OPTION_DEPRESS, 0); in thread_wait_to_block()
|
| H A D | turnstiles_test.c | 52 get_sched_pri(thread_t thread_port) in get_sched_pri() argument 58 kr = thread_info(thread_port, THREAD_EXTENDED_INFO, in get_sched_pri() 66 get_base_pri(thread_t thread_port) in get_base_pri() argument 72 kr = thread_info(thread_port, THREAD_EXTENDED_INFO, in get_base_pri()
|
| H A D | kevent_qos.c | 93 mach_port_t thread_port = pthread_mach_thread_np(pthread_self()); in get_user_promotion_basepri() local 95 kern_return_t kr = thread_policy_get(thread_port, THREAD_POLICY_STATE, in get_user_promotion_basepri() 107 mach_port_t thread_port = pthread_mach_thread_np(pthread_self()); in get_thread_iotier() local 109 kern_return_t kr = thread_policy_get(thread_port, THREAD_POLICY_STATE, in get_thread_iotier() 1117 thread_wait_to_block(mach_port_t thread_port) in thread_wait_to_block() argument 1124 kr = thread_info(thread_port, THREAD_EXTENDED_INFO, in thread_wait_to_block() 1133 thread_switch(thread_port, SWITCH_OPTION_DEPRESS, 0); in thread_wait_to_block()
|
| H A D | stackshot_tests.m | 1127 mach_port_t thread_port = pthread_mach_thread_np(pthread_self()); 1129 kern_return_t kr = thread_policy_get(thread_port, THREAD_POLICY_STATE, 1136 get_pri(thread_t thread_port) 1142 kr = thread_info(thread_port, THREAD_EXTENDED_INFO,
|
| /xnu-11215/osfmk/kern/ |
| H A D | exception.c | 210 ipc_port_t thread_port = IPC_PORT_NULL, in exception_deliver() local 361 thread_port = convert_thread_to_port(thread); in exception_deliver() 364 thread_port = convert_thread_read_to_port(thread); in exception_deliver() 370 thread_port, in exception_deliver() 377 thread_port, in exception_deliver() 510 thread_port = convert_thread_to_port(thread); in exception_deliver() 513 thread_port = convert_thread_read_to_port(thread); in exception_deliver() 532 thread_port, in exception_deliver() 542 thread_port, in exception_deliver() 579 if (thread_port) { in exception_deliver() [all …]
|
| H A D | ux_handler.c | 131 mach_port_t thread_port, /* control or read port */ in catch_mach_exception_raise() argument 145 if ((target_thread = convert_port_to_thread_read(thread_port)) == THREAD_NULL) { in catch_mach_exception_raise() 163 ipc_port_release_send(thread_port); in catch_mach_exception_raise()
|
| /xnu-11215/tests/sched/ |
| H A D | cluster_bound_threads.c | 94 mach_port_t thread_port = pthread_mach_thread_np(bound_thread); variable 97 kr = thread_info(thread_port, THREAD_BASIC_INFO, (thread_info_t)&bound_thread_info, &count);
|
| H A D | thread_group_fairness.c | 149 mach_port_t thread_port = pthread_mach_thread_np(threads[i]); in snapshot_user_time_usec() local 151 kr = thread_info(thread_port, THREAD_BASIC_INFO, (thread_info_t)&info, &count); in snapshot_user_time_usec()
|
| /xnu-11215/libsyscall/wrappers/ |
| H A D | _libc_funcptr.c | 137 _pthread_clear_qos_tsd(mach_port_t thread_port) in _pthread_clear_qos_tsd() argument 141 return _libkernel_functions->pthread_clear_qos_tsd(thread_port); in _pthread_clear_qos_tsd()
|
| /xnu-11215/bsd/sys/ |
| H A D | pthread_shims.h | 94 …gnal)(proc_t p, user_addr_t cv, uint64_t cvlsgen, uint32_t cvugen, int thread_port, user_addr_t mu…
|
| /xnu-11215/bsd/pthread/ |
| H A D | pthread_shims.c | 426 …return pthread_functions->psynch_cvsignal(p, uap->cv, uap->cvlsgen, uap->cvugen, uap->thread_port,… in psynch_cvsignal()
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_sig.c | 937 target_act = (thread_act_t)port_name_to_thread(uap->thread_port, in __pthread_markcancel() 1105 target_act = (thread_t)port_name_to_thread(uap->thread_port, in __pthread_kill()
|