Make folly::Singleton DFATAL as late as possible
authorAndrii Grynenko <andrii@fb.com>
Fri, 20 Mar 2015 19:17:17 +0000 (12:17 -0700)
committerNoam Lerner <noamler@fb.com>
Wed, 25 Mar 2015 22:35:24 +0000 (15:35 -0700)
commit278d263c9532dabb110dcfc74a50fdc92256d101
tree110a9e9d15af165fc5e3394eb77bf0c28d5566d1
parent4abb466901ce3fa3cc0b1f446f8f7a1bb67e715f
Make folly::Singleton DFATAL as late as possible

Summary: We want to print all destructor stack-traces if Singleton destruction happens eventually (even after destroyInstances() was done).

Test Plan:
unit test

Reviewed By: chip@fb.com

Subscribers: folly-diffs@, yfeldblum

FB internal diff: D1929881

Signature: t1:1929881:1426878091:5993d544c0f84bdbf8bcdd420ef01fb7bf88ac3f
folly/experimental/Singleton.cpp