15 May
2013
15 May
'13
6:06 p.m.
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.