Allow optional atfork hook for singleton destruction
authorAndrii Grynenko <andrii@fb.com>
Thu, 5 May 2016 23:41:33 +0000 (16:41 -0700)
committerFacebook Github Bot 3 <facebook-github-bot-3-bot@fb.com>
Thu, 5 May 2016 23:50:36 +0000 (16:50 -0700)
commita9c78aa8cbed43a075fe6abdca65d8124d618a3c
treeee022589e2c2649cd018a5fbcfe690fc5a70cc19
parent2d2aed32cff14f35fd3163276a0475fcd682edf5
Allow optional atfork hook for singleton destruction

Summary: Grouping all folly::ThreadLocal atfork hooks in one. This allows proper ordering between folly::ThreadLocal hooks and hooks added by other libraries (we always want folly::ThreadLocal hooks to be registered first).

Reviewed By: ericniebler

Differential Revision: D3262666

fb-gh-sync-id: 1aa928b9ddd484580f4a4a7b320e9e64164bb04a
fbshipit-source-id: 1aa928b9ddd484580f4a4a7b320e9e64164bb04a
folly/detail/ThreadLocalDetail.cpp
folly/detail/ThreadLocalDetail.h