Home
last modified time | relevance | path

Searched refs:pthread_t (Results 1 – 25 of 126) sorted by relevance

123456

/xnu-12377.61.12/tests/unit/mocks/
H A Dstd_safe.h139 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 Dmach_eventlink.c32 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 Dtask_vm_info_decompressions.c88 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 Dfd.c29 pthread_t th;
85 pthread_t th[4];
135 pthread_t t;
H A Dioperf.c46 pthread_t thread;
103 static pthread_t
108 pthread_t new_thread; in create_thread()
H A Dwork_interval_test.c110 pthread_t joining_thread;
133 set_realtime(pthread_t thread) in set_realtime()
153 set_nonrealtime(pthread_t thread) in set_nonrealtime()
H A Dulock.c102 pthread_t waiter, waker;
134 pthread_t waiter;
H A Duipc_uaf.c103 pthread_t t1, t2;
106 pthread_t gc;
H A Dkqueue_close.c62 pthread_t thread; in run_test()
97 pthread_t th;
H A Drestartable_ranges.c145 pthread_t th;
236 pthread_t th;
H A Dunp_connect_thread_uaf.c116 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 Drun.c23 pthread_t *threads; in main()
34 threads = (pthread_t *)calloc(threadcount, sizeof(pthread_t)); in main()
/xnu-12377.61.12/tests/sched/
H A Dsched_test_utils.h37 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 Dcluster_bound_threads.c66 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 Dthread_group_flags.c122 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 Dthread_group_fairness.c131 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 Dcontextswitch.c47 pthread_t thread;
71 static pthread_t
76 pthread_t new_thread; in make_thread()
H A Doverloaded_runqueue.c72 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 Dsched_test_utils.c255 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 Dzone_gc_replenish_test.c68 pthread_t gc_thread;
69 pthread_t alloc_thread;
/xnu-12377.61.12/tests/iokit/
H A Dport_object_description_race_77259918.c75 pthread_t notification_create_pth;
76 pthread_t iokit_port_object_description_pth;
/xnu-12377.61.12/tools/tests/perf_index/
H A Dperf_index.c163 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 Dipc_thread_ports_race.c36 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 Dzero-to-n.c133 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 Dcounter.c140 pthread_t *threads;
144 threads = malloc(sizeof(pthread_t) * kNumThreads);

123456