src/emc has some 56 references to fields called 'heartbeat', but its unclear
what the intent and semantics are - AFAICT the only using code is in xemc.cc
where it is used for some kind of change detection.
Any idea what that field was supposed to serve? it looks a bit like 'lets see
whether this component is still alive, like executing cyclically', but it isnt
used systematically
the comments are less than helpful:
/* dynamic status-- changes every cycle */
unsigned int heartbeat;
task:emcTaskUpdate() stat->heartbeat++; (used nowhere)
iocontrol.cc:
emcioStatus.heartbeat++;
motion/control.c
/* here ends the core of the controller */
emcmotStatus->heartbeat++;
- Michael
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers