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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3e11ef4efc073f6b X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!postnews.google.com!w39g2000prb.googlegroups.com!not-for-mail From: ishikawa@arielworks.com Newsgroups: comp.lang.ada Subject: Re: requeue with abort and timed call Date: Sat, 3 Jan 2009 08:49:18 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <2a60b044-6a5c-4ce6-93e6-6eeefc8806c3@l33g2000pri.googlegroups.com> <1f6rcb1qwt7vx.1mckzyk9ucohf.dlg@40tude.net> <84c56781-1cb1-4d86-be14-e66fc9fdade6@w1g2000prk.googlegroups.com> <7p8onuvzdz18$.1m1dq8n3b52q5.dlg@40tude.net> <9j9ajg.3a7.ln@hunter.axlog.fr> <2a0a1de3-6736-4478-9378-50b8895fa20d@r15g2000prh.googlegroups.com> <133a14c1-efc1-4a27-bc66-cff24a75ef93@z28g2000prd.googlegroups.com> NNTP-Posting-Host: 221.37.42.8 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1231001358 20629 127.0.0.1 (3 Jan 2009 16:49:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 3 Jan 2009 16:49:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w39g2000prb.googlegroups.com; posting-host=221.37.42.8; posting-account=UO0ZfgoAAAAg-AJ8SR3KlCGoe1tEbkJa User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:3191 Date: 2009-01-03T08:49:18-08:00 List-Id: Timed entry call (select else/ select or delay) for protected objects seems broken too... with Ada.Text_IO; use Ada.Text_IO; procedure Timed_Protected is protected P is entry E1; entry E2; end P; protected body P is entry E1 when True is begin Put_Line ("E1"); delay 5.0; -- takes over Parent's delay Put_Line ("E1 done"); end E1; entry E2 when True is begin Put_Line ("E2"); end E2; end P; task T1 is end T1; task body T1 is begin P.E1; end T1; begin delay 0.2; -- to ensure start after T1 Put_Line ("Parent selecting"); select P.E2; else Put_Line ("Parent canceling"); end select; end Timed_Protected; This code outputs; E1 Parent selecting E1 done E2 I think the code should output: E1 Parent selecting Parent canceling E1 done The both problems might have the same cause.