Home
last modified time | relevance | path

Searched refs:tls (Results 1 – 4 of 4) sorted by relevance

/rocksdb-6.9/util/
Dthread_local.cc190 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() local
408 auto* tls = GetThreadLocal(); in Reset() local
412 tls->entries.resize(id + 1); in Reset()
418 auto* tls = GetThreadLocal(); in Swap() local
[all …]
Dthread_local_test.cc384 ThreadLocalPtr tls; in TEST_F() local
385 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() local
520 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 …]
/rocksdb-6.9/build_tools/
Dbuild_detect_platform678 static __thread int tls;
679 (void)tls;
/rocksdb-6.9/
DCMakeLists.txt282 static __thread int tls;