Switch folly::Singleton to ReadMostlySharedPtr
authorAndrii Grynenko <andrii@fb.com>
Wed, 9 Dec 2015 23:09:05 +0000 (15:09 -0800)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Wed, 9 Dec 2015 23:20:29 +0000 (15:20 -0800)
commit71c140ede54db347f9a971d6e2de0ade95569c1d
tree7338d84f2df3a720d3fe5fb97fb13efc8eb71ee7
parent7e6064c66cf34a5d02e9312d3d90b43e1185d735
Switch folly::Singleton to ReadMostlySharedPtr

Summary:
This also introduces a new try_get_fast() API which returns ReadMostlySharedPtr.
We should eventually migrate all users onto this API.

Reviewed By: elsteveogrande

Differential Revision: D2706745

fb-gh-sync-id: d558d705f431fc6147334c188fd0c6156644ba5c
folly/Singleton-inl.h
folly/Singleton.h
folly/experimental/ReadMostlySharedPtr.h
folly/experimental/test/ReadMostlySharedPtrBenchmark.cpp
folly/experimental/test/ReadMostlySharedPtrTest.cpp
folly/test/SingletonBenchmark.cpp [new file with mode: 0644]
folly/test/SingletonTest.cpp