|
Boost Users : |
From: Raja Cherukuri (raja_at_[hidden])
Date: 2007-10-02 06:49:30
Thanks Andreas,
I was thinking more on the lines of implementing:
1. time_event : sc::event<>
And a scheduler that delays by doing a peak into
Every event ( to see if it has delay set ).
2. delay_scheduler : sc::fifo_scheduler<...
And use the rest of the library un-changed.
Could you advise if this is a workable approach ?
Thank You
Raja
-----Original Message-----
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Andreas Huber
Sent: Tuesday, October 02, 2007 1:18 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] statechart - time event...implementation ?
Hi Raja
> It seems the current
> implementation of statechart library does not have timed
> event.
Correct.
> It is possible
> to extend or specialize the current event<> class to achieve
> this ?
You'd probably also need a special type of state, see link below.
> Has anyone
> done this yet ?
Chris seems to have implemented a platform-specific solution (see link below),
I'm not aware of a general solution.
> Looks like a common
> requirement for this type of event.
You mean that many people would need such an event? I agree.
> Any reason why it is
> not part of this library offering ?
For a rationale, please see at the bottom of the following message:
<http://article.gmane.org/gmane.comp.lib.boost.user/29563>
> Is it expected that users of this library do
> it themselves ?
Yes, unfortunately. At least with the current version.
Regards,
-- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header. _______________________________________________ Boost-users mailing list Boost-users_at_[hidden] http://lists.boost.org/mailman/listinfo.cgi/boost-users
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