36#ifndef _DCC_SIMPLEUPDATELOOP_HXX_
37#define _DCC_SIMPLEUPDATELOOP_HXX_
74 refreshSources_.push_back(source);
82 refreshSources_.erase(
83 remove(refreshSources_.begin(), refreshSources_.end(), source),
84 refreshSources_.end());
See OSMutexLock in os/OS.hxx.
Collection of related state machines that pend on incoming messages.
State flow with a given typed input queue.
Base::Action Action
Allows using Action without having StateFlowBase:: prefix in front of it.
Abstract class for streams of DCC packets.
Implementation of a command station update loop.
size_t nextRefreshIndex_
Offset in the refreshSources_ vector for the next loco to send.
bool add_refresh_source(dcc::PacketSource *source, unsigned priority) OVERRIDE
Adds a new refresh source to the background refresh packets.
void notify_update(PacketSource *source, unsigned code) OVERRIDE
We ignore notifications.
void remove_refresh_source(dcc::PacketSource *source) OVERRIDE
Deletes a packet refresh source.
long long lastCycleStart_
os time for the last time we sent a packet for loco zero.
Action entry() OVERRIDE
Entry into the StateFlow activity.
Base class for implementing update loops.
#define OVERRIDE
Function attribute for virtual functions declaring that this funciton is overriding a funciton that s...