![]() |
Contur 2
Educational OS kernel simulator
|
Serial runtime strategy that executes dispatcher lanes on the caller thread. More...
#include <serial_dispatch_runtime.h>
Public Member Functions | |
| SerialDispatchRuntime (HostThreadingConfig config={}) | |
| Constructs serial runtime with runtime-owned config. | |
| ~SerialDispatchRuntime () override | |
| Destroys serial runtime. | |
| SerialDispatchRuntime (const SerialDispatchRuntime &)=delete | |
| Copy construction is disabled. | |
| SerialDispatchRuntime & | operator= (const SerialDispatchRuntime &)=delete |
| Copy assignment is disabled. | |
| SerialDispatchRuntime (SerialDispatchRuntime &&) noexcept | |
| Move-constructs serial runtime state. | |
| SerialDispatchRuntime & | operator= (SerialDispatchRuntime &&) noexcept |
| Move-assigns serial runtime state. | |
| std::string_view | name () const noexcept override |
| Returns runtime implementation name. | |
| const HostThreadingConfig & | config () const noexcept override |
| Returns runtime-owned threading config. | |
| Result< void > | dispatch (const DispatcherLanes &lanes, std::size_t tickBudget) override |
| Runs one serial dispatch pass across all lanes. | |
| void | tick (const DispatcherLanes &lanes) override |
| Ticks all lanes serially. | |
| Public Member Functions inherited from contur::IDispatchRuntime | |
| virtual | ~IDispatchRuntime ()=default |
Private Attributes | |
| std::unique_ptr< Impl > | impl_ |
Serial runtime strategy that executes dispatcher lanes on the caller thread.
Definition at line 13 of file serial_dispatch_runtime.h.
|
explicit |
Constructs serial runtime with runtime-owned config.
| config | Runtime threading config (normalized to serial-safe invariants). |
References config().
Referenced by operator=(), operator=(), SerialDispatchRuntime(), and SerialDispatchRuntime().
|
override |
Destroys serial runtime.
|
delete |
Copy construction is disabled.
References SerialDispatchRuntime().
|
noexcept |
Move-constructs serial runtime state.
References SerialDispatchRuntime().
|
nodiscardoverridevirtualnoexcept |
Returns runtime-owned threading config.
Implements contur::IDispatchRuntime.
References config().
Referenced by config(), and SerialDispatchRuntime().
|
nodiscardoverridevirtual |
Runs one serial dispatch pass across all lanes.
Implements contur::IDispatchRuntime.
References dispatch().
Referenced by dispatch().
|
nodiscardoverridevirtualnoexcept |
Returns runtime implementation name.
Implements contur::IDispatchRuntime.
References name().
Referenced by name().
|
delete |
Copy assignment is disabled.
References SerialDispatchRuntime().
|
noexcept |
Move-assigns serial runtime state.
References SerialDispatchRuntime().
|
overridevirtual |
Ticks all lanes serially.
Implements contur::IDispatchRuntime.
References tick().
Referenced by tick().
|
private |
Definition at line 48 of file serial_dispatch_runtime.h.