Don't allow getting singleton after shutdown in strict mode
authorAndrii Grynenko <andrii@fb.com>
Fri, 19 Aug 2016 18:55:15 +0000 (11:55 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Fri, 19 Aug 2016 19:08:42 +0000 (12:08 -0700)
commitc7656e1f39228fe5f78658c1f49c980a8ac597e4
treefe47d616ba708f9995168f5ecfb0cbb423ad32dc
parent79212dac968aad6e2a9b8fb1320daad6faf49f4a
Don't allow getting singleton after shutdown in strict mode

Summary: Make strict mode stricter, by not allowing singleton to be fetched after shutdown (even with try_get).

Reviewed By: yfeldblum

Differential Revision: D3737925

fbshipit-source-id: 8d5536c4f27e13feee722b5abeb15db6fe3d77bf
folly/Singleton-inl.h
folly/Singleton.h