Lines Matching refs:PlatformThread
27 class BasicLockTestThread : public PlatformThread::Delegate {
40 PlatformThread::Sleep(rand() % 20);
46 PlatformThread::Sleep(rand() % 20);
66 EXPECT_TRUE(PlatformThread::Create(&thread, &handle));
77 PlatformThread::Sleep(rand() % 20);
83 PlatformThread::Sleep(rand() % 20);
90 PlatformThread::Sleep(rand() % 20);
94 PlatformThread::Join(handle);
104 class TryLockTestThread : public PlatformThread::Delegate {
134 EXPECT_TRUE(PlatformThread::Create(&thread, &handle));
136 PlatformThread::Join(handle);
148 EXPECT_TRUE(PlatformThread::Create(&thread, &handle));
150 PlatformThread::Join(handle);
163 class MutexLockTestThread : public PlatformThread::Delegate {
172 PlatformThread::Sleep(rand() % 10);
196 EXPECT_TRUE(PlatformThread::Create(&thread, &handle));
200 PlatformThread::Join(handle);
217 EXPECT_TRUE(PlatformThread::Create(&thread1, &handle1));
218 EXPECT_TRUE(PlatformThread::Create(&thread2, &handle2));
219 EXPECT_TRUE(PlatformThread::Create(&thread3, &handle3));
223 PlatformThread::Join(handle1);
224 PlatformThread::Join(handle2);
225 PlatformThread::Join(handle3);