From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: Periodic tasks - organization
Date: Fri, 18 Jul 2008 18:37:23 -0700 (PDT)
Date: 2008-07-18T18:37:23-07:00 [thread overview]
Message-ID: <4e1a36e7-7c71-4313-89a8-4661a55e59bf@u12g2000prd.googlegroups.com> (raw)
In-Reply-To: 1jt6gtl169krz.1g52yb1id2u85$.dlg@40tude.net
On Jul 18, 9:22 am, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
wrote:
> On Fri, 18 Jul 2008 08:31:29 -0700 (PDT), Anh Vo wrote:
> > On Jul 17, 12:31�pm, Simon Wright <simon.j.wri...@mac.com> wrote:
> >> But there are limits on what is permissible within a protected
> >> procedure, are there not?
>
> [...]
>
> > My design is completely different from yours. Indeed, an explicit task
> > is not needed. See Gem #15, Timers, for details.
> >http://www.adacore.com/2007/10/29/ada-gem-15/
>
> Hmm, but it is exactly the design presented by Simon. The problem with it
> is that the action fired upon a timer event is called from a protected
> procedure.
I hope you already looked at ada-gem-15 and see the difference.
> This is IMO not what Maciej wanted, because as Simon has pointed out
> protected procedures are very limited in what they allowed do and in how
> they do it.
Why is Protected Procedure limited for this purpose?
> Another point is that even if that were the context of a task (which is
> not), it still would be an unsatisfactory design, because simultaneously
> triggered actions would block each other when overlapping.
Again, look at the full code in Ada-Gem-15. There is no overlap action
at all.
next prev parent reply other threads:[~2008-07-19 1:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-13 21:47 Periodic tasks - organization Maciej Sobczak
2008-07-13 23:35 ` tmoran
2008-07-14 3:52 ` george.priv
2008-07-14 9:08 ` Alex R. Mosteo
2008-07-14 15:31 ` Anh Vo
2008-07-16 21:38 ` Simon Wright
2008-07-16 22:47 ` Anh Vo
2008-07-17 19:31 ` Simon Wright
2008-07-18 15:31 ` Anh Vo
2008-07-18 16:22 ` Dmitry A. Kazakov
2008-07-19 1:37 ` Anh Vo [this message]
2008-07-19 10:22 ` Dmitry A. Kazakov
2008-07-20 9:46 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox