Schedule destroyInstances in registrationComplete
authorAndrii Grynenko <andrii@fb.com>
Tue, 21 Oct 2014 20:55:56 +0000 (13:55 -0700)
committerdcsommer <dcsommer@fb.com>
Wed, 29 Oct 2014 23:04:14 +0000 (16:04 -0700)
commit05fbb13d62ad73cbb542029940c9021afecb7bf1
tree0e1fe4bd9a87861917a023779ee6dcfb2aebec04
parentfd915b73606e09a5f46a1bca0a5d3643a1567014
Schedule destroyInstances in registrationComplete

Summary: This makes it more likely that SingletonVaultDestructor won't be created after atexit calls.

Test Plan: unit test

Reviewed By: chip@fb.com

Subscribers: hphp-diffs@, ps, njormrod, folly-diffs@

FB internal diff: D1629804

Tasks: 5353022
folly/experimental/Singleton.h