Lines Matching refs:PlatformThread
15 class BasicLockTestThread : public PlatformThread::Delegate {
28 PlatformThread::Sleep(rand() % 20); in ThreadMain()
34 PlatformThread::Sleep(rand() % 20); in ThreadMain()
54 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
65 PlatformThread::Sleep(rand() % 20); in TEST()
71 PlatformThread::Sleep(rand() % 20); in TEST()
78 PlatformThread::Sleep(rand() % 20); in TEST()
82 PlatformThread::Join(handle); in TEST()
90 class TryLockTestThread : public PlatformThread::Delegate {
120 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
122 PlatformThread::Join(handle); in TEST()
134 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
136 PlatformThread::Join(handle); in TEST()
148 class MutexLockTestThread : public PlatformThread::Delegate {
157 PlatformThread::Sleep(rand() % 10); in DoStuff()
181 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
185 PlatformThread::Join(handle); in TEST()
201 ASSERT_TRUE(PlatformThread::Create(0, &thread1, &handle1)); in TEST()
202 ASSERT_TRUE(PlatformThread::Create(0, &thread2, &handle2)); in TEST()
203 ASSERT_TRUE(PlatformThread::Create(0, &thread3, &handle3)); in TEST()
207 PlatformThread::Join(handle1); in TEST()
208 PlatformThread::Join(handle2); in TEST()
209 PlatformThread::Join(handle3); in TEST()