| /xnu-12377.61.12/tests/unit/mocks/ |
| H A D | std_safe.h | 139 typedef __darwin_pthread_t pthread_t; typedef 147 extern pthread_t pthread_self(void); 148 extern int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(voi… 149 extern int pthread_join(pthread_t thread, void **value_ptr); 167 extern size_t pthread_get_stacksize_np(pthread_t); 168 extern void* pthread_get_stackaddr_np(pthread_t);
|
| /xnu-12377.61.12/tests/ |
| H A D | mach_eventlink.c | 32 static pthread_t 35 pthread_t pthread; in thread_create_for_test() 324 pthread_t pthread; 399 pthread_t pthread; 427 pthread_t pthread; 452 pthread_t pthread; 487 pthread_t pthread; 521 pthread_t pthread; 550 pthread_t pthread; 581 pthread_t pthread; [all …]
|
| H A D | task_vm_info_decompressions.c | 88 static pthread_t* 89 create_threads(int nthreads, pthread_t *threads, struct thread_args *targs) in create_threads() 107 join_threads(int nthreads, pthread_t *threads) in join_threads() 130 pthread_t *threads; 164 threads = malloc(sizeof(pthread_t) * (size_t)ncpu);
|
| H A D | fd.c | 29 pthread_t th; 85 pthread_t th[4]; 135 pthread_t t;
|
| H A D | ioperf.c | 46 pthread_t thread; 103 static pthread_t 108 pthread_t new_thread; in create_thread()
|
| H A D | work_interval_test.c | 110 pthread_t joining_thread; 133 set_realtime(pthread_t thread) in set_realtime() 153 set_nonrealtime(pthread_t thread) in set_nonrealtime()
|
| H A D | ulock.c | 102 pthread_t waiter, waker; 134 pthread_t waiter;
|
| H A D | uipc_uaf.c | 103 pthread_t t1, t2; 106 pthread_t gc;
|
| H A D | kqueue_close.c | 62 pthread_t thread; in run_test() 97 pthread_t th;
|
| H A D | restartable_ranges.c | 145 pthread_t th; 236 pthread_t th;
|
| H A D | unp_connect_thread_uaf.c | 116 pthread_t runner1; in test_unp_connect_multithread() 117 pthread_t runner2; in test_unp_connect_multithread()
|
| /xnu-12377.61.12/tools/tests/execperf/ |
| H A D | run.c | 23 pthread_t *threads; in main() 34 threads = (pthread_t *)calloc(threadcount, sizeof(pthread_t)); in main()
|
| /xnu-12377.61.12/tests/sched/ |
| H A D | sched_test_utils.h | 37 void create_thread_pri(pthread_t *thread_handle, int priority, void *(*func)(void *), void *arg); 54 void create_thread(pthread_t *thread_handle, pthread_attr_t *attr, void *(*func)(void *), void *arg… 55 pthread_t *create_threads(int num_threads, int priority,
|
| H A D | cluster_bound_threads.c | 66 pthread_t unbound_thread; 67 pthread_t bound_thread; 108 observe_thread_user_time(pthread_t thread, unsigned int seconds) in observe_thread_user_time() 157 pthread_t bound_thread; 236 pthread_t *threads = create_threads(dt_ncpu(), 31, eJoinable, QOS_CLASS_UNSPECIFIED,
|
| H A D | thread_group_flags.c | 122 static pthread_t * 126 pthread_t *threads = (pthread_t *)malloc(sizeof(pthread_t) * num_threads); in start_threads() 141 start_test(ktrace_session_t session, pthread_t *threads, int num_threads) in start_test() 308 __block pthread_t *threads = start_threads(join_workload_fn, datas, num_workload_ids); 411 __block pthread_t *threads = start_threads(join_leave_pid_based, datas, num_threads);
|
| H A D | thread_group_fairness.c | 131 start_threads(pthread_t *threads, struct thread_data *thread_datas, work_interval_t *handle, uint32… in start_threads() 143 snapshot_user_time_usec(pthread_t *threads) in snapshot_user_time_usec() 179 pthread_t lower_threads[num_cores]; 184 pthread_t higher_threads[num_cores]; 381 pthread_t threads[num_boosters];
|
| H A D | contextswitch.c | 47 pthread_t thread; 71 static pthread_t 76 pthread_t new_thread; in make_thread()
|
| H A D | overloaded_runqueue.c | 72 start_threads(pthread_t *threads, void *(*start_routine)(void *), int priority, int num_threads) in start_threads() 288 pthread_t *bg_threads = malloc(sizeof(pthread_t) * (size_t)NUM_THREADS);
|
| H A D | sched_test_utils.c | 255 create_thread(pthread_t *thread_handle, pthread_attr_t *attr, in create_thread() 264 create_thread_pri(pthread_t *thread_handle, int priority, in create_thread_pri() 272 pthread_t * 281 pthread_t *thread_handles = (pthread_t *)malloc(sizeof(pthread_t) * (size_t)num_threads); in create_threads()
|
| /xnu-12377.61.12/tests/vm/ |
| H A D | zone_gc_replenish_test.c | 68 pthread_t gc_thread; 69 pthread_t alloc_thread;
|
| /xnu-12377.61.12/tests/iokit/ |
| H A D | port_object_description_race_77259918.c | 75 pthread_t notification_create_pth; 76 pthread_t iokit_port_object_description_pth;
|
| /xnu-12377.61.12/tools/tests/perf_index/ |
| H A D | perf_index.c | 163 pthread_t* threads; in main() 199 threads = (pthread_t*)malloc(sizeof(pthread_t) * args.num_threads); in main()
|
| /xnu-12377.61.12/tests/ipc/ |
| H A D | ipc_thread_ports_race.c | 36 pthread_t th[BATCH]; in thread_creation_bomb_one() 103 pthread_t th; in local_test()
|
| /xnu-12377.61.12/tools/tests/zero-to-n/ |
| H A D | zero-to-n.c | 133 static pthread_t* g_churn_threads = NULL; 134 static pthread_t* g_rt_churn_threads = NULL; 318 g_churn_threads = (pthread_t*) valloc(sizeof(pthread_t) * g_churn_count); in create_churn_threads() 334 pthread_t new_thread; in create_churn_threads() 461 g_rt_churn_threads = (pthread_t*) valloc(sizeof(pthread_t) * g_rt_churn_count); in create_rt_churn_threads() 477 pthread_t new_thread; in create_rt_churn_threads() 972 pthread_t *threads; in main() 1194 threads = (pthread_t*) valloc(sizeof(pthread_t) * g_numthreads); in main()
|
| /xnu-12377.61.12/tests/counter/ |
| H A D | counter.c | 140 pthread_t *threads; 144 threads = malloc(sizeof(pthread_t) * kNumThreads);
|