Add new immutable global CPU executor that is guaranteed to not be changed.
Summary: The mutable global executor is problematic: it defaults to Inline, and it is constructed off of an error-prone weak_ptr and it returns a shared_ptr. A KeepAlive-based global immutable executor is a cleaner default. This change adds immutable global executors, and moves the default executors into separate singletons for cleaner interaction between the mutable executor and the underlying default immutable ones, including the default inline global cpu executor. Reviewed By: andriigrynenko Differential Revision: D18513433 fbshipit-source-id: 0ad825c34cc7ba935f57ff81adb8cff3bf001a45
Showing
Please register or sign in to comment