comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Periodic tasks - organization
Date: Fri, 18 Jul 2008 18:22:52 +0200
Date: 2008-07-18T18:22:52+02:00	[thread overview]
Message-ID: <1jt6gtl169krz.1g52yb1id2u85$.dlg@40tude.net> (raw)
In-Reply-To: 2172d1a7-39a7-412c-9f30-635054f9103d@q24g2000prf.googlegroups.com

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.

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.

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.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2008-07-18 16:22 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 [this message]
2008-07-19  1:37               ` Anh Vo
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