Make ThreadLocalPtr behave sanely around fork()
authorTudor Bosman <tudorb@fb.com>
Thu, 1 Aug 2013 21:21:52 +0000 (14:21 -0700)
committerSara Golemon <sgolemon@fb.com>
Wed, 28 Aug 2013 21:30:11 +0000 (14:30 -0700)
commit88ae9ac7f80c48c29b2e0ece6249973a0bef5184
treefaa985bc124cd2f45093793c606797800a97c543
parent206a03724cc06f9856c11a454c07dd61299ac6d1
Make ThreadLocalPtr behave sanely around fork()

Summary:
Threads and fork still don't mix, but we shouldn't help you shoot yourself in
the foot if you decide to do it.

Test Plan: test added

Reviewed By: mshneer@fb.com

FB internal diff: D911224
folly/detail/ThreadLocalDetail.h
folly/test/ThreadLocalTest.cpp