From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,470e89e7a6575920 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news1.google.com!postnews.google.com!u12g2000prd.googlegroups.com!not-for-mail From: Anh Vo Newsgroups: comp.lang.ada Subject: Re: Periodic tasks - organization Date: Fri, 18 Jul 2008 18:37:23 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4e1a36e7-7c71-4313-89a8-4661a55e59bf@u12g2000prd.googlegroups.com> References: <86589099-2e4e-4b7d-ace0-6f1f864a3fa2@y21g2000hsf.googlegroups.com> <6e0jbhF4o43oU1@mid.individual.net> <561c8fa7-f26d-49a3-b54c-229c20462c04@r66g2000hsg.googlegroups.com> <2172d1a7-39a7-412c-9f30-635054f9103d@q24g2000prf.googlegroups.com> <1jt6gtl169krz.1g52yb1id2u85$.dlg@40tude.net> NNTP-Posting-Host: 209.225.224.254 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1216431444 6160 127.0.0.1 (19 Jul 2008 01:37:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 19 Jul 2008 01:37:24 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u12g2000prd.googlegroups.com; posting-host=209.225.224.254; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1223 Date: 2008-07-18T18:37:23-07:00 List-Id: On Jul 18, 9:22=C2=A0am, "Dmitry A. Kazakov" wrote: > On Fri, 18 Jul 2008 08:31:29 -0700 (PDT), Anh Vo wrote: > > On Jul 17, 12:31=EF=BF=BDpm, Simon Wright wrot= e: > >> 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.