Lines Matching refs:thread
195 pthread_t thread;
196 ASSERT_EQ(0, pthread_create(&thread, nullptr, SemWaitEINTRThreadFn, &s));
197 // Give some time for the thread to run sem_wait.
199 ASSERT_EQ(0, pthread_kill(thread, SIGUSR1));
200 // Give some time for the thread to handle signal.
204 ASSERT_EQ(0, pthread_join(thread, &result));
218 pthread_t thread;
219 ASSERT_EQ(0, pthread_create(&thread, nullptr, SemWaitEINTRThreadFn, &s));
220 // Give some time for the thread to run sem_wait.
222 ASSERT_EQ(0, pthread_kill(thread, SIGUSR1));
223 // Give some time for the thread to handle signal.
227 ASSERT_EQ(0, pthread_join(thread, &result));