Lines Matching refs:num_threads
67 int num_threads; member
134 static void create_threads(int num_threads, int thr_tids[]) in create_threads() argument
140 for (i = 0; i < num_threads; ++i) { in create_threads()
159 create_threads(ca->num_threads, ca->thr_tids); in child_func_process()
161 ret = write(ca->pfd[1], &ca->thr_tids, sizeof(int) * ca->num_threads); in child_func_process()
175 void create_processes(int num_processes, int num_threads, struct child_args proc[]) in create_processes() argument
181 proc[i].num_threads = num_threads; in create_processes()
193 ret = read(proc[i].pfd[0], &proc[i].thr_tids, sizeof(int) * proc[i].num_threads); in create_processes()
211 for (j = 0; j < proc[i].num_threads; ++j) { in disp_processes()
235 int num_threads = 3; in main() local
248 num_threads = (int)strtoul(optarg, NULL, 10); in main()
267 if (num_threads < 1 || num_threads > MAX_THREADS) in main()
280 create_processes(num_processes, num_threads, procs); in main()