Singleton: refine "eager" initialization
authorSteve O'Brien <steveo@fb.com>
Fri, 25 Sep 2015 18:02:46 +0000 (11:02 -0700)
committerfacebook-github-bot-9 <folly-bot@fb.com>
Fri, 25 Sep 2015 18:20:17 +0000 (11:20 -0700)
commit8f1e662a59dec3476bf626b283effaa8a88acdd5
treedbb5db5ead85a0030a9b474210a8bc41f90f898a
parent800a6af06f7ad195a8e63d484b2f5cd7c19655fd
Singleton: refine "eager" initialization

Summary: * `registrationComplete` has a slightly different interface (uses enums now)
* `void doEagerInit()` method initializes synchronously; `Future<Unit> doEagerInitVia(Executor*)` now available.

Reviewed By: @luciang, @meyering

Differential Revision: D2463464
folly/Singleton.h
folly/test/SingletonTest.cpp
folly/test/SingletonTestGlobal.cpp [new file with mode: 0644]
folly/test/SingletonTestStructs.h [new file with mode: 0644]