Lines Matching defs:thread
105 #define SECCOMP_RET_KILL_THREAD 0x00000000U /* kill the thread */
781 /* This is a thread task to die via seccomp filter violation. */
800 /* Prepare a thread that will kill itself or both of us. */
804 pthread_t thread;
846 /* Start a thread that will exit immediately. */
847 ASSERT_EQ(0, pthread_create(&thread, NULL, kill_thread, (void *)false));
848 ASSERT_EQ(0, pthread_join(thread, &status));
851 /* Start a thread that will die immediately. */
852 ASSERT_EQ(0, pthread_create(&thread, NULL, kill_thread, (void *)true));
853 ASSERT_EQ(0, pthread_join(thread, &status));
857 * If we get here, only the spawned thread died. Let the parent know
858 * the whole process didn't die (i.e. this thread, the spawner,
878 /* If only the thread was killed, we'll see exit 42. */
918 TH_LOG("Unknown SECCOMP_RET is only killing the thread?");
2612 * If a thread is still running, it may be stuck, so hit
2962 /* Signal the thread to clean up*/
3981 pthread_t thread;
4006 if (pthread_create(&thread, NULL, do_thread, NULL) ||
4007 pthread_join(thread, NULL))
4010 if (pthread_create(&thread, NULL, do_thread, NULL) ||
4011 pthread_join(thread, NULL))