#include <toolbox/io/Runner.hpp>
Definition at line 39 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 110 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 116 of file Runner.cpp.
◆ ReactorRunner() [3/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. |
loop_cb | Loop callback function. |
Definition at line 122 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: