如何判断当前线程是否是 folly::executor 线程?

问题描述 投票:0回答:0

我正在编写使用 folly::executor 的 C++ 代码,我想检查当前线程是否是执行线程。

例如,类似于 API static folly::Executor* folly::executor::getExecutor(),如果当前线程不是执行线程,它会返回 nullptr。

c++ executor folly
© www.soinside.com 2019 - 2024. All rights reserved.