Home | History | Annotate | Download | only in threading

Lines Matching refs:PlatformThread

27 class TrivialThread : public PlatformThread::Delegate {
48 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
49 PlatformThread::Join(handle);
60 ASSERT_TRUE(PlatformThread::Create(0, &thread[n], &handle[n]));
62 PlatformThread::Join(handle[n]);
71 class FunctionTestThread : public PlatformThread::Delegate {
89 thread_id_ = PlatformThread::CurrentId();
93 EXPECT_EQ(thread_id_, PlatformThread::CurrentId());
136 PlatformThreadId main_thread_id = PlatformThread::CurrentId();
142 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
148 PlatformThread::Join(handle);
152 EXPECT_EQ(main_thread_id, PlatformThread::CurrentId());
156 PlatformThreadId main_thread_id = PlatformThread::CurrentId();
165 ASSERT_TRUE(PlatformThread::Create(0, &thread[n], &handle[n]));
182 PlatformThread::Join(handle[n]);
187 EXPECT_EQ(main_thread_id, PlatformThread::CurrentId());
196 // PlatformThread::GetCurrentThreadPriority() on Android does not support
227 PlatformThread::GetCurrentThreadPriority());
236 PlatformThread::GetCurrentThreadPriority()) {
241 PlatformThread::SetCurrentThreadPriority(kThreadPriorityTestValues[i]);
243 PlatformThread::GetCurrentThreadPriority());
253 // PlatformThread::GetCurrentThreadPriority() is not implemented on OS X.
266 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
271 PlatformThread::Join(handle);