Make sure singleton destructor is always called from main thread.
authorAndrii Grynenko <andrii@fb.com>
Thu, 23 Mar 2017 18:17:04 +0000 (11:17 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 23 Mar 2017 18:21:50 +0000 (11:21 -0700)
commitd70b7399f39ea6c183d1070a654a24026985cb10
tree113d5133d4924f7a692048bb1f5c60131887fc2f
parent873d451128cf4aee2b8a7b7c460e24ed8e42c334
Make sure singleton destructor is always called from main thread.

Reviewed By: yfeldblum, ot

Differential Revision: D4742262

fbshipit-source-id: 7137bb8e1cb39c74e8ba726e76e9a8a6f3e1984c
folly/Singleton-inl.h
folly/test/SingletonTest.cpp