Task executor implementation that just run tasks in current thread during calling of run() method. More...
#include <ie_immediate_executor.hpp>
Public Types | |
using | Ptr = std::shared_ptr< ImmediateExecutor > |
A shared pointer to a ImmediateExecutor object. | |
Public Types inherited from InferenceEngine::ITaskExecutor | |
using | Ptr = std::shared_ptr< ITaskExecutor > |
Public Member Functions | |
~ImmediateExecutor () override=default | |
Destroys the object. | |
void | run (Task task) override |
Execute InferenceEngine::Task inside task executor context. More... | |
Public Member Functions inherited from InferenceEngine::ITaskExecutor | |
virtual | ~ITaskExecutor ()=default |
Destroys the object. | |
virtual void | runAndWait (const std::vector< Task > &tasks) |
Execute all of the tasks and waits for its completion. Default runAndWait() method implementation uses run() pure virtual method and higher level synchronization primitives from STL. The task is wrapped into std::packaged_task which returns std::future. std::packaged_task will call the task and signal to std::future that the task is finished or the exception is thrown from task Than std::future is used to wait for task execution completion and task exception extraction. More... | |
Task executor implementation that just run tasks in current thread during calling of run() method.
|
inlineoverridevirtual |
Execute InferenceEngine::Task inside task executor context.
task | A task to start |
Implements InferenceEngine::ITaskExecutor.