Lines Matching refs:thread
53 BasicLockTestThread thread(&lock);
56 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
87 EXPECT_GE(thread.acquired(), 20);
117 // This thread will not be able to get the lock.
119 TryLockTestThread thread(&lock);
122 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
126 ASSERT_FALSE(thread.got_lock());
131 // This thread will....
133 TryLockTestThread thread(&lock);
136 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
140 ASSERT_TRUE(thread.got_lock());
154 // Static helper which can also be called from the main thread.
180 MutexLockTestThread thread(&lock, &value);
183 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));