Public Types | Public Member Functions
InferenceEngine::ImmediateExecutor Class Reference

Task executor implementation that just run tasks in current thread during calling of run() method. More...

#include <ie_immediate_executor.hpp>

Inheritance diagram for InferenceEngine::ImmediateExecutor:
InferenceEngine::ITaskExecutor

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...
 

Detailed Description

Task executor implementation that just run tasks in current thread during calling of run() method.

Member Function Documentation

◆ run()

void InferenceEngine::ImmediateExecutor::run ( Task  task)
inlineoverridevirtual

Execute InferenceEngine::Task inside task executor context.

Parameters
taskA task to start

Implements InferenceEngine::ITaskExecutor.


The documentation for this class was generated from the following file: