folly::setCPUExecutor

methodset Deprecated

Synopsis

Declared in <folly/executors/GlobalExecutor.h>

[[deprecated("setCPUExecutor is deprecated. To use the global mutable executor use setUnsafeMutableGlobalCPUExecutor. For a better solution use getGlobalCPUExecutor and avoid calling set.")]]
void
setCPUExecutor(std::weak_ptr<folly::Executor> executor);

WARNING

Deprecated: setCPUExecutor is deprecated. To use the global mutable executor use setUnsafeMutableGlobalCPUExecutor. For a better solution use getGlobalCPUExecutor and avoid calling set.. Use of this entity is allowed but discouraged.

Description

To use the global mutable executor use setUnsafeMutableGlobalCPUExecutor. For a better solution use getGlobalCPUExecutor and avoid calling set.

Parameters

NameDescription
executorExecutor to set as the global mutable CPU executor.