summaryrefslogtreecommitdiff
path: root/util/thread_local_test.cc
diff options
context:
space:
mode:
authorLei Jin <lei@fb.com>2014-04-22 21:13:34 -0700
committerLei Jin <lei@fb.com>2014-04-22 21:13:34 -0700
commit547bb6a626ce0d77877d7ddbb18a9071dd8bb579 (patch)
tree7cca6c4b0735c3f3636ee983f901130be389795b /util/thread_local_test.cc
parent86a0133d0527a1005ebd9b517fa973c1a4a0a1ae (diff)
simplify ThreadLocalPtr a little bit
Summary: make singleton a static member instead of dynamic object. This should also avoid the race on unique_ptr Test Plan: make all check Reviewers: igor, haobo, sdong Reviewed By: igor CC: leveldb Differential Revision: https://reviews.facebook.net/D18177
Diffstat (limited to 'util/thread_local_test.cc')
-rw-r--r--util/thread_local_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/thread_local_test.cc b/util/thread_local_test.cc
index d273947a8..70dfa956e 100644
--- a/util/thread_local_test.cc
+++ b/util/thread_local_test.cc
@@ -49,7 +49,7 @@ struct Params {
class IDChecker : public ThreadLocalPtr {
public:
- static uint32_t PeekId() { return StaticMeta::Instance()->PeekId(); }
+ static uint32_t PeekId() { return Instance()->PeekId(); }
};
} // anonymous namespace