Don't allow singleton use w/o registrationComplete()
authorAndrii Grynenko <andrii@fb.com>
Tue, 4 Apr 2017 03:04:44 +0000 (20:04 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 4 Apr 2017 03:08:12 +0000 (20:08 -0700)
commit7d0d018f7661e1994c7f68c8b80483d80a96f9fd
treefbb8c383b366dd3957e38a4e0db96506da1f270d
parent0fdbb3df4230829df93437f2143384c6aa27befb
Don't allow singleton use w/o registrationComplete()

Summary: This is same as D4249032, but for now this is only enabled in dbg and dev builds. I'm planning to bump this to FATAL later, once we fix know problematic main()s.

Reviewed By: lbrandy, yfeldblum

Differential Revision: D4821763

fbshipit-source-id: 5f7930f8cbcb10275d23a89848f1ec8ee34a8020
folly/Singleton-inl.h
folly/Singleton.cpp
folly/Singleton.h