Home | History | Annotate | Download | only in synchronization

Lines Matching refs:thread

51   BasicLockTestThread thread(&lock);
54 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
85 EXPECT_GE(thread.acquired(), 20);
115 // This thread will not be able to get the lock.
117 TryLockTestThread thread(&lock);
120 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
124 ASSERT_FALSE(thread.got_lock());
129 // This thread will....
131 TryLockTestThread thread(&lock);
134 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
138 ASSERT_TRUE(thread.got_lock());
152 // Static helper which can also be called from the main thread.
178 MutexLockTestThread thread(&lock, &value);
181 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));