MCPcopy Create free account
hub / github.com/AimRT/AimRT / ExportExecutorManagerRef

Function ExportExecutorManagerRef

src/runtime/python_runtime/export_executor.h:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace aimrt::runtime::python_runtime {
17
18inline void ExportExecutorManagerRef(pybind11::object m) {
19 using aimrt::executor::ExecutorManagerRef;
20
21 pybind11::class_<ExecutorManagerRef>(std::move(m), "ExecutorManagerRef")
22 .def(pybind11::init<>())
23 .def("__bool__", &ExecutorManagerRef::operator bool)
24 .def("GetExecutor", &ExecutorManagerRef::GetExecutor);
25}
26
27inline void PyExecutorRefExecuteWrapper(
28 aimrt::executor::ExecutorRef& executor, std::function<void()>&& task) {

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected