Use RWSpinLock for Singleton mutex
Summary: We only need exclusive lock when we add items to singletons_. Each SingletonEntry has its own mutex, so it's safe to rely on it for any modifications within individual entries. Test Plan: Applied D1573880 and ran fbconfig -r servicerouter/client/cpp2 && fbmake runtests Reviewed By: chip@fb.com Subscribers: trunkagent, njormrod, hitesh, mshneer FB internal diff: D1579877
Showing
Please register or sign in to comment