/third_party/rust/crates/nix/src/sys/ |
H A D | pthread.rs | 25 /// Send a signal to a thread (see [`pthread_kill(3)`]). 27 /// If `signal` is `None`, `pthread_kill` will only preform error checking and 30 /// [`pthread_kill(3)`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_kill.html 33 pub fn pthread_kill<T>(thread: Pthread, signal: T) -> Result<()> in pthread_kill() functions 40 let res = unsafe { libc::pthread_kill(thread, sig) }; in pthread_kill()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_kill/ |
H A D | stress.c | 18 * -> pthread_kill() does not make the system unstable 132 ret = pthread_kill(*(pthread_t *) arg, SIGABRT); in flooder_1() 148 ret = pthread_kill(*(pthread_t *) arg, SIGBUS); in flooder_2() 196 ret = pthread_kill(*(pthread_t *) arg, SIGILL); in sync_send() 319 output("pthread_kill stress test PASSED -- %llu iterations\n", in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/ |
H A D | 6-2.c | 25 * -> pthread_kill one of the threads 149 ret = pthread_kill(ch[0], SIGUSR1); in main() 168 ret = pthread_kill(ch[i], SIGUSR1); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/ |
H A D | 8-1.c | 22 * -> kill a thread which calls pthread_kill 156 /* Test function -- calls pthread_kill() and checks that EINTR is never returned. */ 172 ret = pthread_kill(pthread_self(), 0); in test() 175 FAILED("pthread_kill returned EINTR"); in test() 180 "pthread_kill returned an unexpected error"); in test() 183 ret = pthread_kill(pthread_self(), SIGUSR1); in test() 186 FAILED("pthread_kill returned EINTR"); in test() 191 "pthread_kill returned an unexpected error"); in test()
|
H A D | 2-1.c | 9 * 1) Call pthread_kill on the current thread with the null signal. 27 if (pthread_kill(main_thread, 0) != 0) { in main() 28 printf("Could not call pthread_kill with sig = 0\n"); in main()
|
H A D | 7-1.c | 8 * Test that when the null signal is sent to pthread_kill(), error 27 if (EINVAL != pthread_kill(main_thread, -1)) { in main() 28 printf("pthread_kill() did not fail on EINVAL\n"); in main()
|
H A D | 3-1.c | 8 * Test that the pthread_kill() function shall return 0 upon success. 25 if (pthread_kill(main_thread, 0) != 0) { in main() 26 printf("pthread_kill did not return success.\n"); in main()
|
H A D | 1-1.c | 8 This program verifies that the pthread_kill() function requests from the 27 using pthread_kill(). Let the new thread continue running, 92 if (pthread_kill(new_th, SIGTOTEST) != 0) { in main()
|
H A D | 1-2.c | 19 * pthread_kill() sends the specified signal to the specified thread. 24 * -> pthread_kill this thread from the main thread 142 ret = pthread_kill(ch, SIGUSR2); in main()
|
/third_party/ltp/testcases/realtime/func/pthread_kill_latency/ |
H A D | pthread_kill_latency.c | 24 * using pthread_kill. Two threads are created - the one that receives the 27 * the time and sends pthread_kill signal to thread1. thread2, which has 205 stats_container_save("samples", "pthread_kill Latency Scatter Plot", in signal_receiving_thread() 207 stats_container_save("hist", "pthread_kill Latency Histogram", in signal_receiving_thread() 246 pthread_kill(PTHREADOF(target_thread), SIGNALNUMBER))) { in signal_sending_thread() 247 printf("pthread_kill returned %d\n", ret); in signal_sending_thread() 262 pthread_kill(PTHREADOF(target_thread), SIGNALNUMBER))) { in signal_sending_thread() 263 printf("pthread_kill returned %d\n", ret); in signal_sending_thread() 289 printf("pthread_kill Latency\n"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/signal_h/ |
H A D | 26-1.c | 3 int pthread_kill(pthread_t, int); 15 dummyvar = pthread_kill; in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/ |
H A D | thread_pthrd_test.cpp | 185 pthread_kill(signalThread, SIGUSR1); in HWTEST_F() 265 EXPECT_EQ(0, pthread_kill(pthread_self(), 0)); in HWTEST_F() 275 EXPECT_EQ(EINVAL, pthread_kill(pthread_self(), -6)); in HWTEST_F() 286 EXPECT_DEATH(pthread_kill(nullThread, 0), ".*"); in HWTEST_F()
|
/third_party/musl/porting/linux/user/src/thread/ |
H A D | pthread_kill.c | 6 int pthread_kill(pthread_t t, int sig) in pthread_kill() function 12 * pthread_kill is used to implement pthread_cancel, which in pthread_kill()
|
/third_party/rust/crates/nix/test/sys/ |
H A D | test_pthread.rs | 20 pthread_kill(pthread_self(), None) in test_pthread_kill_none()
|
/third_party/musl/src/thread/ |
H A D | pthread_kill.c | 8 int pthread_kill(pthread_t t, int sig) in pthread_kill() function 16 * pthread_kill is used to implement pthread_cancel, which in pthread_kill()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigpause/ |
H A D | 1-2.c | 18 3. After the ten seconds, send the new thread a signal using pthread_kill, 72 if (pthread_kill(new_th, SIGTOTEST) != 0) { in main()
|
H A D | 1-1.c | 15 using pthread_kill(). After doing this, give the new thread a second 63 if (pthread_kill(new_th, SIGTOTEST) != 0) { in main()
|
H A D | 3-1.c | 83 if (pthread_kill(new_th, SIGTOTEST) != 0) { in main()
|
H A D | 2-1.c | 16 using pthread_kill(), and using the concept of semaphores, have the main() 97 if (pthread_kill(new_th, SIGTOTEST) != 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/bin/ |
H A D | run-posix-option-group-test.sh | 54 run_option_group_tests $BASEDIR/pthread_kill
|
/third_party/libunwind/libunwind/tests/ |
H A D | Gtest-concurrent.c | 79 pthread_kill (pthread_self (), SIGUSR1); in worker()
|
/third_party/musl/libc-test/src/regression/ |
H A D | raise-race.c | 71 r = pthread_kill(t, SIGNUM+1); in main()
|
/third_party/ltp/testcases/kernel/syscalls/sigaction/ |
H A D | sigaction01.c | 48 * provide siginfo (such as pthread_kill(3)) should invoke the handler 258 pthread_kill(pthread_self(), in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/ |
H A D | 3-2.c | 120 if (pthread_kill(child_thread, SIGUSR1) != 0) { in main() 121 printf("main: Error at pthread_kill()\n"); in main()
|
/third_party/backends/sanei/ |
H A D | sanei_thread.c | 183 return pthread_kill((pthread_t)pid, SIGUSR2); in sanei_thread_kill() 477 return pthread_kill( (pthread_t)pid, sig ); in sanei_thread_sendsig()
|