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