我正在编写使用 folly::executor 的 C++ 代码,我想检查当前线程是否是执行线程。
例如,类似于 API static folly::Executor* folly::executor::getExecutor(),如果当前线程不是执行线程,它会返回 nullptr。