Lines Matching defs:thread
102 #define SECCOMP_RET_KILL_THREAD 0x00000000U /* kill the thread */
766 /* This is a thread task to die via seccomp filter violation. */
785 /* Prepare a thread that will kill itself or both of us. */
789 pthread_t thread;
831 /* Start a thread that will exit immediately. */
832 ASSERT_EQ(0, pthread_create(&thread, NULL, kill_thread, (void *)false));
833 ASSERT_EQ(0, pthread_join(thread, &status));
836 /* Start a thread that will die immediately. */
837 ASSERT_EQ(0, pthread_create(&thread, NULL, kill_thread, (void *)true));
838 ASSERT_EQ(0, pthread_join(thread, &status));
842 * If we get here, only the spawned thread died. Let the parent know
843 * the whole process didn't die (i.e. this thread, the spawner,
863 /* If only the thread was killed, we'll see exit 42. */
903 TH_LOG("Unknown SECCOMP_RET is only killing the thread?");
2546 * If a thread is still running, it may be stuck, so hit
2896 /* Signal the thread to clean up*/
3905 pthread_t thread;
3930 if (pthread_create(&thread, NULL, do_thread, NULL) ||
3931 pthread_join(thread, NULL))
3934 if (pthread_create(&thread, NULL, do_thread, NULL) ||
3935 pthread_join(thread, NULL))