![]() |
Contur 2
Educational OS kernel simulator
|
Strategy interface that executes dispatch/tick across dispatcher lanes. More...
#include <i_dispatch_runtime.h>
Public Member Functions | |
| virtual | ~IDispatchRuntime ()=default |
| virtual std::string_view | name () const noexcept=0 |
| Returns runtime implementation name. | |
| virtual const HostThreadingConfig & | config () const noexcept=0 |
| Returns the normalized runtime-owned threading config. | |
| virtual Result< void > | dispatch (const DispatcherLanes &lanes, std::size_t tickBudget)=0 |
| Runs one dispatch cycle across provided lanes. | |
| virtual void | tick (const DispatcherLanes &lanes)=0 |
| Advances all lanes by one runtime tick. | |
Strategy interface that executes dispatch/tick across dispatcher lanes.
Definition at line 23 of file i_dispatch_runtime.h.
|
virtualdefault |
|
nodiscardpure virtualnoexcept |
Returns the normalized runtime-owned threading config.
Implemented in contur::DispatcherPool, and contur::SerialDispatchRuntime.
References config().
Referenced by config().
|
nodiscardpure virtual |
Runs one dispatch cycle across provided lanes.
| lanes | Dispatcher lanes to execute. |
| tickBudget | Tick budget forwarded to each lane dispatch. |
Implemented in contur::DispatcherPool, and contur::SerialDispatchRuntime.
References dispatch().
Referenced by dispatch().
|
nodiscardpure virtualnoexcept |
Returns runtime implementation name.
Implemented in contur::DispatcherPool, and contur::SerialDispatchRuntime.
|
pure virtual |
Advances all lanes by one runtime tick.
| lanes | Dispatcher lanes to tick. |
Implemented in contur::DispatcherPool, and contur::SerialDispatchRuntime.
References tick().
Referenced by tick().