Replace singleton names with type tags
authorAndrii Grynenko <andrii@fb.com>
Wed, 17 Dec 2014 04:33:44 +0000 (20:33 -0800)
committerViswanath Sivakumar <viswanath@fb.com>
Tue, 13 Jan 2015 19:01:03 +0000 (11:01 -0800)
commitdf2469a3b81a5c55d21975caa3d359af9bb2ca35
treecd9b345393673a89ff249d49451285644c065ba0
parent760b4c4f3bb0cc9998e41bbed048491a23fa4a6a
Replace singleton names with type tags

Summary: This change simplifies Singleton API (methods don't need to accept name) and the actual implementation. It also makes it similar to folly::ThreadLocalPtr. Additionally misspelled singleton name becomes compilation error, not runtime error. Some users were actually naming singletons, when that was neccessary, this should also be fixed.

Test Plan: unit tests for all touched projects

Reviewed By: chip@fb.com

Subscribers: trunkagent, fugalh, jsedgwick, fbcode-common-diffs@, mcduff, hitesh, mshneer, folly-diffs@

FB internal diff: D1744978

Signature: t1:1744978:1419282587:bd29dd8a70d7572530ac371a96a21764229bc397
folly/experimental/Singleton.h
folly/experimental/test/SingletonTest.cpp
folly/wangle/concurrent/GlobalExecutor.cpp
folly/wangle/concurrent/IOExecutor.cpp