Using type-tags for test SingletonVaults
authorAndrii Grynenko <andrii@fb.com>
Wed, 4 Feb 2015 00:48:31 +0000 (16:48 -0800)
committerSara Golemon <sgolemon@fb.com>
Wed, 11 Feb 2015 02:01:59 +0000 (18:01 -0800)
commit75d52926e0368733c79b55def0801dba6e41ea5e
tree3272950a3e74d83396de5dbd24eeeb5782fb16a8
parent2aa1ef48260d62982e1f27e265df240e5e8e154b
Using type-tags for test SingletonVaults

Summary: This makes test SingletonVaults more similar to global SingletonVault. It also ensures that every SingletonVault is a singleton, which allows potential optimization of making each SingletonEntry a Singleton too, which itself will make get/get_weak as efficient as get_fast/get_weak_fast.

Test Plan: unit test

Reviewed By: chip@fb.com

Subscribers: folly-diffs@, yfeldblum

FB internal diff: D1823663

Signature: t1:1823663:1423188884:4ab2b47cfba270a66613f6f2458b6affc0ed96ad
folly/experimental/Singleton.cpp
folly/experimental/Singleton.h
folly/experimental/test/SingletonTest.cpp