Commit 3c64279a authored by Vitalii Topoliuk's avatar Vitalii Topoliuk Committed by Facebook GitHub Bot

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

Summary:
Original commit changeset: b48fe4683165

Our application can't terminate since this change was committed. 100% reproducible.

Reviewed By: WillerZ

Differential Revision: D26621716

fbshipit-source-id: 571ecd9a6f5286469877bf510f1f55b036df9217
parent d2e690a6
......@@ -58,7 +58,7 @@ class SerialExecutor : public SequencedExecutor {
SerialExecutor& operator=(SerialExecutor&&) = delete;
static KeepAlive<SerialExecutor> create(
KeepAlive<Executor> parent = getGlobalCPUExecutor());
KeepAlive<Executor> parent = getKeepAliveToken(getCPUExecutor().get()));
class Deleter {
public:
......@@ -76,7 +76,7 @@ class SerialExecutor : public SequencedExecutor {
using UniquePtr = std::unique_ptr<SerialExecutor, Deleter>;
[[deprecated("Replaced by create")]] static UniquePtr createUnique(
std::shared_ptr<Executor> parent);
std::shared_ptr<Executor> parent = getCPUExecutor());
/**
* Add one task for execution in the parent executor
......
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