Home
last modified time | relevance | path

Searched refs:pthread_kill (Results 1 - 25 of 67) sorted by relevance

123

/third_party/rust/crates/nix/src/sys/
H A Dpthread.rs25 /// 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 Dstress.c18 * -> 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 D6-2.c25 * -> 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 D8-1.c22 * -> 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 D2-1.c9 * 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 D7-1.c8 * 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 D3-1.c8 * 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 D1-1.c8 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 D1-2.c19 * 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 Dpthread_kill_latency.c24 * 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 D26-1.c3 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 Dthread_pthrd_test.cpp185 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 Dpthread_kill.c6 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 Dtest_pthread.rs20 pthread_kill(pthread_self(), None) in test_pthread_kill_none()
/third_party/musl/src/thread/
H A Dpthread_kill.c8 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 D1-2.c18 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 D1-1.c15 using pthread_kill(). After doing this, give the new thread a second
63 if (pthread_kill(new_th, SIGTOTEST) != 0) { in main()
H A D3-1.c83 if (pthread_kill(new_th, SIGTOTEST) != 0) { in main()
H A D2-1.c16 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 Drun-posix-option-group-test.sh54 run_option_group_tests $BASEDIR/pthread_kill
/third_party/libunwind/libunwind/tests/
H A DGtest-concurrent.c79 pthread_kill (pthread_self (), SIGUSR1); in worker()
/third_party/musl/libc-test/src/regression/
H A Draise-race.c71 r = pthread_kill(t, SIGNUM+1); in main()
/third_party/ltp/testcases/kernel/syscalls/sigaction/
H A Dsigaction01.c48 * 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 D3-2.c120 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 Dsanei_thread.c183 return pthread_kill((pthread_t)pid, SIGUSR2); in sanei_thread_kill()
477 return pthread_kill( (pthread_t)pid, sig ); in sanei_thread_sendsig()

Completed in 9 milliseconds

123