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