Home
last modified time | relevance | path

Searched refs:PlatformThread (Results 1 – 3 of 3) sorted by relevance

/external/sfntly/cpp/src/test/
Dlock_test.cc27 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 …]
Dplatform_thread.cc24 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) {
Dplatform_thread.h43 class PlatformThread {
69 PlatformThread() {} in PlatformThread() function
70 NO_COPY_AND_ASSIGN(PlatformThread);