diff --git a/src/agent/CMakeLists.txt b/src/agent/CMakeLists.txt index f0dae4455d..7e5c7330fc 100644 --- a/src/agent/CMakeLists.txt +++ b/src/agent/CMakeLists.txt @@ -17,6 +17,7 @@ set(SOURCES set(HEADERS include/agent.hpp + include/itask_manager.hpp ) add_library(agent ${SOURCES} ${HEADERS}) diff --git a/src/agent/include/itask_manager.hpp b/src/agent/include/itask_manager.hpp new file mode 100644 index 0000000000..c313376685 --- /dev/null +++ b/src/agent/include/itask_manager.hpp @@ -0,0 +1,16 @@ +#pragma once + +#include + +template +class ITaskManager +{ +public: + virtual ~ITaskManager() = default; + + virtual void start(size_t numThreads) = 0; + virtual void stop() = 0; + + virtual void enqueueTask(std::function task) = 0; + virtual void enqueueTask(CoroutineTaskType task) = 0; +};