Class AgnocastOnlySingleThreadedExecutor
Inheritance Relationships
Base Type
public agnocast::AgnocastOnlyExecutor(Class AgnocastOnlyExecutor)
Class Documentation
-
class AgnocastOnlySingleThreadedExecutor : public agnocast::AgnocastOnlyExecutor
Single-threaded executor for Stage 2 (Agnocast-only). Used with agnocast::Node.
Public Functions
-
explicit AGNOCAST_PUBLIC AgnocastOnlySingleThreadedExecutor(int next_exec_timeout_ms = 50)
Construct the executor.
- Parameters:
next_exec_timeout_ms – Timeout in ms for waiting on the next executable.
- virtual AGNOCAST_PUBLIC void spin () override
Block the calling thread and process Agnocast callbacks in a loop until cancel() is called.
-
explicit AGNOCAST_PUBLIC AgnocastOnlySingleThreadedExecutor(int next_exec_timeout_ms = 50)