#include <toolbox/io/Runner.hpp>
Definition at line 48 of file Runner.hpp.
◆ ReactorRunner() [1/5]
Constructs a ReactorRunner instance.
When work is processed by the Reactor during a call to Reactor::poll, the next 'n' calls to Reactor::poll, where 'n' is busy_cycles, will not cause the thread to block or yield if no further work is available. This feature can be useful for keeping the reactor warm and responsive for short periods of time immediately after work is processed.
- Parameters
-
| r | The reactor. |
| busy_cycles | The number of busy cycles after doing work. |
| config | The thread configuration. |
Definition at line 131 of file Runner.cpp.
◆ ReactorRunner() [2/5]
Constructs a ReactorRunner instance.
When work is processed by the Reactor during a call to Reactor::poll, the next 'n' calls to Reactor::poll, where 'n' is busy_cycles, will not cause the thread to block or yield if no further work is available. This feature can be useful for keeping the reactor warm and responsive for short periods of time immediately after work is processed.
- Parameters
-
| r | The reactor. |
| busy_cycles | The number of busy cycles after doing work. |
| config | The thread configuration. |
| metric_cb | Metric callback function. |
Definition at line 137 of file Runner.cpp.
◆ ReactorRunner() [3/5]
Constructs a ReactorRunner instance that hands every pass of its loop to pass_slot.
When work is processed by the Reactor during a call to Reactor::poll, the next 'n' calls to Reactor::poll, where 'n' is busy_cycles, will not cause the thread to block or yield if no further work is available. This feature can be useful for keeping the reactor warm and responsive for short periods of time immediately after work is processed.
- Parameters
-
| r | The reactor. |
| busy_cycles | The number of busy cycles after doing work. |
| config | The thread configuration. |
| metric_cb | Metric callback function. |
| pass_slot | Receives every pass, on the runner's thread; an empty slot receives none. |
Definition at line 143 of file Runner.cpp.
◆ ~ReactorRunner()
| toolbox::io::ReactorRunner::~ReactorRunner |
( |
| ) |
|
◆ ReactorRunner() [4/5]
◆ ReactorRunner() [5/5]
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following files: