Home | History | Annotate | Download | only in synchronization

Lines Matching refs:PlatformThread

18 class BasicLockTestThread : public PlatformThread::Delegate {
31 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
37 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
57 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
68 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
74 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
81 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
85 PlatformThread::Join(handle);
93 class TryLockTestThread : public PlatformThread::Delegate {
123 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
125 PlatformThread::Join(handle);
137 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
139 PlatformThread::Join(handle);
151 class MutexLockTestThread : public PlatformThread::Delegate {
160 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 10));
182 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
186 PlatformThread::Join(handle);
202 ASSERT_TRUE(PlatformThread::Create(0, &thread1, &handle1));
203 ASSERT_TRUE(PlatformThread::Create(0, &thread2, &handle2));
204 ASSERT_TRUE(PlatformThread::Create(0, &thread3, &handle3));
208 PlatformThread::Join(handle1);
209 PlatformThread::Join(handle2);
210 PlatformThread::Join(handle3);