Dne 15.5.2013 20:06, Igor R napsal(a):
I have implemented timers for library Boost Statechart. It was tested only on Linux because it uses POSIX threads. It is extension that replaces fifo_scheduler and fifo_worker with only one class Scheduler. That means that it is suitable only for asynchronous state machines.
The source codes with example and short description can be downloaded here: https://www.dropbox.com/s/ubtep8f7hs6g5xl/boostTimers.tar.gz
Just out of curiosity: what's the design rationale of putting FSM-independent event generation logic (like timings) into the FSM itself? It what cases it would be better solution than putting timers outside the FSM?
Thanks. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users Hi,
the reason is simple. We use statechart library for robot control and it is better to have timers inside library for us. It shorten the code and all state machines and timers can run in one thread. Petr