| D | tgkill01.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * of threads in parallel, then one-by-one call tgkill(..., tid, SIGUSR1) 25 static struct thread_state *threads; variable 39 * There is no standard way to map pthread -> tid, so we will have the in thread_func() 43 thread->tid = sys_gettid(); in thread_func() 54 SAFE_PTHREAD_CREATE(&thread->thread, NULL, thread_func, thread); in start_thread() 66 if (threads[i].tid == -1) in stop_threads() 69 SAFE_PTHREAD_JOIN(threads[i].thread, NULL); in stop_threads() 70 threads[i].tid = -1; in stop_threads() 73 if (threads) in stop_threads() [all …]
|