Searched refs:PlatformThread (Results 1 – 3 of 3) sorted by relevance
27 class BasicLockTestThread : public PlatformThread::Delegate {40 PlatformThread::Sleep(rand() % 20); in ThreadMain()46 PlatformThread::Sleep(rand() % 20); in ThreadMain()66 EXPECT_TRUE(PlatformThread::Create(&thread, &handle)); in BasicLockTest()77 PlatformThread::Sleep(rand() % 20); in BasicLockTest()83 PlatformThread::Sleep(rand() % 20); in BasicLockTest()90 PlatformThread::Sleep(rand() % 20); in BasicLockTest()94 PlatformThread::Join(handle); in BasicLockTest()104 class TryLockTestThread : public PlatformThread::Delegate {134 EXPECT_TRUE(PlatformThread::Create(&thread, &handle)); in TryLockTest()[all …]
24 PlatformThread::Delegate* delegate = in ThreadFunc()25 static_cast<PlatformThread::Delegate*>(params); in ThreadFunc()31 bool PlatformThread::Create(Delegate* delegate, in Create()43 void PlatformThread::Join(PlatformThreadHandle thread_handle) { in Join()51 void PlatformThread::Sleep(int32_t duration_ms) { in Sleep()58 PlatformThread::Delegate* delegate =59 static_cast<PlatformThread::Delegate*>(params);65 bool PlatformThread::Create(Delegate* delegate,79 void PlatformThread::Join(PlatformThreadHandle thread_handle) {85 void PlatformThread::Sleep(int32_t duration_ms) {
43 class PlatformThread {69 PlatformThread() {} in PlatformThread() function70 NO_COPY_AND_ASSIGN(PlatformThread);