Commit b9f3d9be authored by Lee Howes's avatar Lee Howes Committed by Facebook GitHub Bot

Switch SerialExecutor to default to the immutable global executor

Summary: Use the global immutable executor by default for SerialExecutor.

Reviewed By: yfeldblum

Differential Revision: D26916419

fbshipit-source-id: c9b68c6b9facd11c8768199f8bae3d6c9276f4bd
parent 5e0cf312
...@@ -58,8 +58,7 @@ class SerialExecutor : public SequencedExecutor { ...@@ -58,8 +58,7 @@ class SerialExecutor : public SequencedExecutor {
SerialExecutor& operator=(SerialExecutor&&) = delete; SerialExecutor& operator=(SerialExecutor&&) = delete;
static KeepAlive<SerialExecutor> create( static KeepAlive<SerialExecutor> create(
KeepAlive<Executor> parent = KeepAlive<Executor> parent = getGlobalCPUExecutor());
getKeepAliveToken(getUnsafeMutableGlobalCPUExecutor().get()));
class Deleter { class Deleter {
public: public:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment