Lines Matching refs:PlatformThread
17 class BasicLockTestThread : public PlatformThread::Delegate {
30 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in ThreadMain()
36 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in ThreadMain()
56 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
67 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST()
73 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST()
80 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST()
84 PlatformThread::Join(handle); in TEST()
92 class TryLockTestThread : public PlatformThread::Delegate {
122 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
124 PlatformThread::Join(handle); in TEST()
136 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
138 PlatformThread::Join(handle); in TEST()
150 class MutexLockTestThread : public PlatformThread::Delegate {
159 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 10)); in DoStuff()
183 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
187 PlatformThread::Join(handle); in TEST()
203 ASSERT_TRUE(PlatformThread::Create(0, &thread1, &handle1)); in TEST()
204 ASSERT_TRUE(PlatformThread::Create(0, &thread2, &handle2)); in TEST()
205 ASSERT_TRUE(PlatformThread::Create(0, &thread3, &handle3)); in TEST()
209 PlatformThread::Join(handle1); in TEST()
210 PlatformThread::Join(handle2); in TEST()
211 PlatformThread::Join(handle3); in TEST()