|
Boost Users : |
Subject: Re: [Boost-users] Statechart timer extension and new version of visualizer
From: Petr Silhavik (silhape2_at_[hidden])
Date: 2013-05-15 14:32:13
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_at_[hidden]
> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net