Commit caba7148 authored by Michael Lee's avatar Michael Lee Committed by Facebook Github Bot 5

Fix build for no FOLLY_TLD_USE_FOLLY_TLS

Summary: unique_ptr doesn't cast to void*

Reviewed By: andriigrynenko

Differential Revision: D3181346

fb-gh-sync-id: 5b912d2b5d46f3c9953b44d5ced7a8e1b4320678
fbshipit-source-id: 5b912d2b5d46f3c9953b44d5ced7a8e1b4320678
parent b25183f6
...@@ -36,7 +36,7 @@ void StaticMetaBase::onThreadExit(void* ptr) { ...@@ -36,7 +36,7 @@ void StaticMetaBase::onThreadExit(void* ptr) {
// Make sure this ThreadEntry is available if ThreadLocal A is accessed in // Make sure this ThreadEntry is available if ThreadLocal A is accessed in
// ThreadLocal B destructor. // ThreadLocal B destructor.
pthread_setspecific(meta.pthreadKey_, threadEntry); pthread_setspecific(meta.pthreadKey_, &(*threadEntry));
SCOPE_EXIT { SCOPE_EXIT {
pthread_setspecific(meta.pthreadKey_, nullptr); pthread_setspecific(meta.pthreadKey_, nullptr);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment