Home
last modified time | relevance | path

Searched refs:thrd_ndx (Results 1 – 3 of 3) sorted by relevance

/third_party/ltp/testcases/kernel/sched/tool/
Dtrace_sched.c297 int thrd_ndx; /* index into the array of threads. */ in main() local
384 for (thrd_ndx = 0; thrd_ndx < num_thrd; thrd_ndx++) { in main()
385 args_table[thrd_ndx] = malloc(sizeof(thread_sched_t)); in main()
386 if (!args_table[thrd_ndx]) { in main()
390 chld_args = args_table[thrd_ndx]; in main()
392 if (pthread_create(&thid[thrd_ndx], NULL, thread_func, in main()
395 thrd_ndx); in main()
400 fprintf(stdout, "Created thread[%d]\n", thrd_ndx); in main()
411 for (thrd_ndx = 0; thrd_ndx < num_thrd; thrd_ndx++) { in main()
412 status_table[thrd_ndx] = malloc(sizeof(thread_sched_t)); in main()
[all …]
/third_party/ltp/testcases/kernel/mem/mtest05/
Dmmstress.c282 int thrd_ndx = 0; /* index to the number of threads created */ in map_and_thread() local
376 th_args[0] = thrd_ndx; in map_and_thread()
389 if (pthread_create(&pthread_ids[thrd_ndx++], NULL, exec_func, in map_and_thread()
405 } while (thrd_ndx < num_thread); in map_and_thread()
414 for (thrd_ndx = 0; thrd_ndx < NUMTHREAD; thrd_ndx++) { in map_and_thread()
415 if (pthread_join(pthread_ids[thrd_ndx], &th_status)) { in map_and_thread()
426 (long)pthread_ids[thrd_ndx]); in map_and_thread()
/third_party/ltp/testcases/kernel/mem/mtest06/
Dshmat1.c393 int thrd_ndx; /* index into the array of threads. */ in main() local
499 for (thrd_ndx = 0; thrd_ndx < 3; thrd_ndx++) { in main()
500 if (pthread_join(thid[thrd_ndx], &status)) { in main()
507 thid[thrd_ndx], (long)status); in main()