19 #include <folly/python/fiber_manager_api.h> 33 import_folly__fiber_manager();
34 if (PyErr_Occurred() !=
nullptr) {
35 throw std::logic_error(
"Fail to import cython fiber_manager");
39 return get_fiber_manager(opts);
—— Concurrent Priority Queue Implementation ——
FOLLY_ALWAYS_INLINE void call_once(basic_once_flag< Mutex, Atom > &flag, F &&f, Args &&...args)
Single-threaded task execution engine.
invoke_result_t< F > runInMainContext(F &&func)
folly::fibers::FiberManager * getFiberManager(const folly::fibers::FiberManager::Options &opts)