Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
NodeInitializeFlow.cxx
Go to the documentation of this file.
1
35#include "openlcb/NodeInitializeFlow.hxx"
36
37namespace openlcb
38{
39
40InitializeFlow::~InitializeFlow()
41{
42}
43
45{
46 auto *g_initialize_flow = Singleton<InitializeFlow>::instance();
47 auto *b = g_initialize_flow->alloc();
48 b->data()->node = node;
49 g_initialize_flow->send(b);
50}
51
52} // namespace openlcb
53
54//DEFINE_SINGLETON_INSTANCE(openlcb::InitializeFlow);
static T * instance()
Definition Singleton.hxx:77
Base class for NMRAnet nodes conforming to the asynchronous interface.
Definition Node.hxx:52
void StartInitializationFlow(Node *node)
Helper function that sends a local virtual node to the static InitializeFlow.