Lines Matching refs:threads
7 * of threads in parallel, then one-by-one call tgkill(..., tid, SIGUSR1)
25 static struct thread_state *threads;
66 if (threads[i].tid == -1)
69 SAFE_PTHREAD_JOIN(threads[i].thread, NULL);
70 threads[i].tid = -1;
73 if (threads)
74 free(threads);
84 TEST(sys_tgkill(getpid(), threads[i].tid, SIGUSR1));
93 if (!pthread_equal(sigusr1_thread, threads[i].thread)) {
99 tst_res(TPASS, "SIGUSR1 delivered to correct threads");
107 tst_brk(TBROK, "Invalid number of threads '%s'", str_threads);
109 threads = SAFE_MALLOC(sizeof(*threads) * n_threads);
117 threads[i].tid = -1;
120 start_thread(&threads[i]);
125 {"t:", &str_threads, "Number of threads (default 10)"},