Lines Matching refs:Thread
36 using v8::internal::Thread;
40 static Thread::LocalStorageKey keys[kValueCount];
49 CHECK(!Thread::HasThreadLocal(keys[i]));
52 Thread::SetThreadLocal(keys[i], GetValue(i));
55 CHECK(Thread::HasThreadLocal(keys[i]));
58 CHECK_EQ(GetValue(i), Thread::GetThreadLocal(keys[i]));
59 CHECK_EQ(GetValue(i), Thread::GetExistingThreadLocal(keys[i]));
62 Thread::SetThreadLocal(keys[i], GetValue(kValueCount - i - 1));
65 CHECK(Thread::HasThreadLocal(keys[i]));
69 Thread::GetThreadLocal(keys[i]));
71 Thread::GetExistingThreadLocal(keys[i]));
75 class TestThread : public Thread {
77 TestThread() : Thread("TestThread") {}
87 keys[i] = Thread::CreateThreadLocalKey();
90 TestThread thread;
91 thread.Start();
92 thread.Join();