Avoid deprecated Singleton<T>::get() in folly/futures
Summary: [Folly] Avoid deprecated `Singleton<T>::get()` in `folly/futures`. Changes `getTimekeeperSingleton()` to return a `shared_ptr<Timekeeper>`, and patches its call-sites. Additionally, have the call-sites keep the singleton instance alive for the duration that it is being directly used. Reviewed By: ddrcoder Differential Revision: D2702361 fb-gh-sync-id: 82b72ee514dc4f2a7f7522af8b2e92b34df063d6
Showing
Please register or sign in to comment