BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
Implementation of AsyncExecutor that executes the tasks directly in the current thread. Thus, the execution is in fact not asynchronous. The purpose of the NonAsyncExecutor is to provide a way how to deal with delegation of asynchronous processing (that is already in a separate thread) to another AsyncExecutor-based system. More...
#include <NonAsyncExecutor.h>
Public Types | |
typedef Poco::SharedPtr < NonAsyncExecutor > | Ptr |
Public Types inherited from BeeeOn::AsyncExecutor | |
typedef Poco::SharedPtr < AsyncExecutor > | Ptr |
Public Member Functions | |
void | invoke (std::function< void()> f) override |
Implementation of AsyncExecutor that executes the tasks directly in the current thread. Thus, the execution is in fact not asynchronous. The purpose of the NonAsyncExecutor is to provide a way how to deal with delegation of asynchronous processing (that is already in a separate thread) to another AsyncExecutor-based system.
|
overridevirtual |
Add task to queue for executing
Implements BeeeOn::AsyncExecutor.