BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions
BeeeOn::NonAsyncExecutor Class Reference

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>

Inheritance diagram for BeeeOn::NonAsyncExecutor:
BeeeOn::AsyncExecutor BeeeOn::Loggable

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
 

Detailed Description

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.

Member Function Documentation

void NonAsyncExecutor::invoke ( std::function< void()>  f)
overridevirtual

Add task to queue for executing

Implements BeeeOn::AsyncExecutor.


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