Searched refs:tls (Results 1 – 4 of 4) sorted by relevance
190 if (tls != nullptr) { in WinOnThreadExit()281 assert(tls != nullptr); in OnThreadExit()287 auto* inst = tls->inst; in OnThreadExit()291 inst->RemoveThreadData(tls); in OnThreadExit()294 for (auto& e : tls->entries) { in OnThreadExit()305 delete tls; in OnThreadExit()400 auto* tls = GetThreadLocal(); in Get() local408 auto* tls = GetThreadLocal(); in Reset() local412 tls->entries.resize(id + 1); in Reset()418 auto* tls = GetThreadLocal(); in Swap() local[all …]
384 ThreadLocalPtr tls; in TEST_F() local385 tls.Reset(reinterpret_cast<void*>(1)); in TEST_F()386 ASSERT_EQ(reinterpret_cast<int64_t>(tls.Swap(nullptr)), 1); in TEST_F()387 ASSERT_TRUE(tls.Swap(reinterpret_cast<void*>(2)) == nullptr); in TEST_F()388 ASSERT_EQ(reinterpret_cast<int64_t>(tls.Get()), 2); in TEST_F()519 ThreadLocalPtr tls; in TEST_F() local520 ASSERT_TRUE(tls.Swap(reinterpret_cast<void*>(1)) == nullptr); in TEST_F()523 ASSERT_TRUE(tls.CompareAndSwap(reinterpret_cast<void*>(2), expected)); in TEST_F()526 ASSERT_TRUE(!tls.CompareAndSwap(reinterpret_cast<void*>(2), expected)); in TEST_F()530 ASSERT_TRUE(tls.CompareAndSwap(reinterpret_cast<void*>(3), expected)); in TEST_F()[all …]
678 static __thread int tls;679 (void)tls;
282 static __thread int tls;