Lines Matching refs:thread

139     // The surviving thread inherits all the forking thread's TLS values...
220 // because it is always set to false after each test. Each thread
244 // Can we create a thread?
282 // If thread 2 is already waiting to join thread 1...
320 // Wait for the thread to be running...
332 // Let the main thread know we're running.
335 // And wait for the main thread to exit.
381 // Spawn a thread that calls sigwait and tells us what it received.
386 // Send that thread SIGUSR1.
423 // Call pthread_setname_np after thread has already exited.
428 // Signal 0 just tests that the thread exists, so it's safe to call on ourselves.
522 // Multiple joins to the same thread should fail.
534 // http://b/11693195 --- pthread_join could return before the thread had actually exited.
535 // If the joiner unmapped the thread's stack, that could lead to SIGSEGV in the thread.
757 pthread_t thread;
758 ASSERT_EQ(0, pthread_create(&thread, NULL,
766 ASSERT_EQ(0, pthread_join(thread, NULL));
793 pthread_t thread;
794 ASSERT_EQ(0, pthread_create(&thread, NULL,
802 ASSERT_EQ(0, pthread_join(thread, NULL));
853 pthread_t thread;
854 ASSERT_EQ(0, pthread_create(&thread, nullptr,
859 ASSERT_EQ(0, pthread_join(thread, nullptr));
874 pthread_t thread;
875 ASSERT_EQ(0, pthread_create(&thread, nullptr,
880 ASSERT_EQ(0, pthread_join(thread, nullptr));
908 void CreateWriterThread(pthread_t& thread, std::atomic<pid_t>& tid) {
911 ASSERT_EQ(0, pthread_create(&thread, NULL,
915 void CreateReaderThread(pthread_t& thread, std::atomic<pid_t>& tid) {
918 ASSERT_EQ(0, pthread_create(&thread, NULL,
1128 pthread_t thread;
1147 ASSERT_EQ(0, pthread_create(&thread, NULL, reinterpret_cast<void* (*)(void*)>(WaitThreadFn), this));
1155 ASSERT_EQ(0, pthread_join(thread, nullptr));
1236 // This test is only meaningful for the main thread, so make sure we're running on it!
1239 // Get the main thread's attributes.
1243 // Check that we correctly report that the main thread has no guard page.
1246 ASSERT_EQ(0U, guard_size); // The main thread has no guard page.
1330 // Use sleep() to make current thread be switched out by the kernel to provoke the error.
1343 // The previous code obtained the main thread's stack by reading the entry in
1346 // switches a process while the main thread is in an alternate stack, then the kernel will label
1348 // thread's stack is found correctly.
1350 // This test is only meaningful for the main thread, so make sure we're running on it!
1380 // Verify if the main thread's stack got in the signal handler is correct.
1428 // Ensure the other thread doesn't exit until after we've called
1438 // Release the other thread and wait for it to exit.
1622 pthread_t thread;
1623 ASSERT_EQ(0, pthread_create(&thread, NULL,
1632 ASSERT_EQ(0, pthread_join(thread, NULL));
1891 pthread_t thread;
1895 ASSERT_EQ(0, pthread_create(&thread, nullptr,
1902 ASSERT_EQ(0, pthread_join(thread, nullptr));