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

Back out "Switch SerialExecutor to default to the immutable global executor"

Summary:
Original commit changeset: c9b68c6b9fac
Backout: D26916419 (https://github.com/facebook/folly/commit/b9f3d9be479d4dccdc8e5094933229e676308872)

Differential Revision: D28532140

fbshipit-source-id: 15e5eb1262234039387bfda36d280391f52cc3b2
parent b4fc73f7
...@@ -58,7 +58,8 @@ class SerialExecutor : public SequencedExecutor { ...@@ -58,7 +58,8 @@ class SerialExecutor : public SequencedExecutor {
SerialExecutor& operator=(SerialExecutor&&) = delete; SerialExecutor& operator=(SerialExecutor&&) = delete;
static KeepAlive<SerialExecutor> create( static KeepAlive<SerialExecutor> create(
KeepAlive<Executor> parent = getGlobalCPUExecutor()); KeepAlive<Executor> parent =
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