18 namespace InferenceEngine {
25 using Task = std::function<void()>;
46 class INFERENCE_ENGINE_API_CLASS(ITaskExecutor) {
51 using Ptr = std::shared_ptr<ITaskExecutor>;
virtual void run(Task task)=0
Execute InferenceEngine::Task inside task executor context.
std::shared_ptr< ITaskExecutor > Ptr
Definition: ie_itask_executor.hpp:51
virtual void runAndWait(const std::vector< Task > &tasks)
Execute all of the tasks and waits for its completion. Default runAndWait() method implementation use...
virtual ~ITaskExecutor()=default
Destroys the object.
std::function< void()> Task
Inference Engine Task Executor can use any copyable callable without parameters and output as a task....
Definition: ie_itask_executor.hpp:25