|
Open Model Railroad Network (OpenMRN)
|
An object that can be scheduled on an executor to run. More...
#include <Executable.hxx>
Public Member Functions | |
| void | test_deletion () |
| virtual void | run ()=0 |
| Entry point. | |
| void | notify () override |
| Crashes the program – everyone who is expecting notify calls must override this function. | |
| virtual void | alloc_result (QMember *item) |
| Return the result of an alloc_async() from a memory Pool. | |
Public Member Functions inherited from QMember | |
| void | init () |
| Initiailize a QMember, in place of a public placement construction. | |
Additional Inherited Members | |
Protected Member Functions inherited from QMember | |
| QMember () | |
| Constructor. | |
| ~QMember () | |
| Destructor. | |
Protected Attributes inherited from QMember | |
| QMember * | next |
| pointer to the next member in the queue | |
An object that can be scheduled on an executor to run.
Definition at line 42 of file Executable.hxx.
|
virtual |
Definition at line 66 of file Executor.cxx.
|
inlinevirtual |
Return the result of an alloc_async() from a memory Pool.
| item | result of the the allocation |
Reimplemented in StateFlowBase, openlcb::WriteHelper, and TypedQAsync< T >::BlockingWait.
Definition at line 63 of file Executable.hxx.
|
inlineoverridevirtual |
Crashes the program – everyone who is expecting notify calls must override this function.
It is not virtual because not all implementation expect Notify calls.
Implements Notifiable.
Reimplemented in StateFlowBase, StateFlowWithQueue, and GcHubPort.
Definition at line 56 of file Executable.hxx.
|
pure virtual |
Entry point.
This funciton will be called when *this gets scheduled on the CPU.
Implemented in BlockExecutor, CallbackExecutable, SyncExecutable, ExecutorBase, StateFlowBase, StateFlowBase::StateFlowTimedSelectHelper, ActiveTimers, Timer, openlcb::BroadcastTimeAlarm::Wakeup, openlcb::WriteHelper, GcHubPort, TypedQAsync< T >::BlockingWait, ExecuteOnMainExecutor, and FnExecutable.
| void Executable::test_deletion | ( | ) |
Definition at line 64 of file Executor.cxx.