Lines Matching refs:Thread
33 class SelfJoinThread FINAL : public Thread {
35 SelfJoinThread() : Thread(Options("SelfJoinThread")) {} in SelfJoinThread()
42 TEST(Thread, SelfJoin) { in TEST() argument
51 class ThreadLocalStorageTest : public Thread, public ::testing::Test {
53 ThreadLocalStorageTest() : Thread(Options("ThreadLocalStorageTest")) { in ThreadLocalStorageTest()
55 keys_[i] = Thread::CreateThreadLocalKey(); in ThreadLocalStorageTest()
60 Thread::DeleteThreadLocalKey(keys_[i]); in ~ThreadLocalStorageTest()
66 CHECK(!Thread::HasThreadLocal(keys_[i])); in Run()
69 Thread::SetThreadLocal(keys_[i], GetValue(i)); in Run()
72 CHECK(Thread::HasThreadLocal(keys_[i])); in Run()
75 CHECK_EQ(GetValue(i), Thread::GetThreadLocal(keys_[i])); in Run()
76 CHECK_EQ(GetValue(i), Thread::GetExistingThreadLocal(keys_[i])); in Run()
79 Thread::SetThreadLocal(keys_[i], GetValue(arraysize(keys_) - i - 1)); in Run()
82 CHECK(Thread::HasThreadLocal(keys_[i])); in Run()
86 Thread::GetThreadLocal(keys_[i])); in Run()
88 Thread::GetExistingThreadLocal(keys_[i])); in Run()
97 Thread::LocalStorageKey keys_[256];