How to tell if current thread is a folly::executor thread?

51 Views Asked by At

I'm writing c++ code that uses folly::executor and I want to check whether the current thread is an executor thread.

For example, something like an API static folly::Executor* folly::executor::getExecutor(), which returns a nullptr if current thread is not an executor thread.

0

There are 0 best solutions below