folly::setUnsafeMutableGlobalCPUExecutor

methodset Executors

Synopsis

Declared in <folly/executors/GlobalExecutor.h>

void
setUnsafeMutableGlobalCPUExecutor(std::weak_ptr<folly::Executor> executor);

Description

Set an Executor to be the global mutable Executor which will be returned by subsequent calls to getUnsafeMutableGlobalCPUExecutor()

For a better solution use getGlobalCPUExecutor and avoid calling set.

Parameters

NameDescription
executorExecutor to set