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,3abdc4d72c0b7e9d X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!q24g2000prf.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Running a background task Date: Fri, 16 May 2008 08:29:45 -0700 (PDT) Organization: http://groups.google.com Message-ID: <137dc73e-780f-4564-91c1-ab115c956956@q24g2000prf.googlegroups.com> References: <760f4092-577e-440e-9fef-fb3ff3389560@h1g2000prh.googlegroups.com> <62f65249-ace3-44fb-9760-976168856c1e@v26g2000prm.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1210951785 5117 127.0.0.1 (16 May 2008 15:29:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 16 May 2008 15:29:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q24g2000prf.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:105 Date: 2008-05-16T08:29:45-07:00 List-Id: On May 16, 8:25 am, Adam Beneschan wrote: > No. If Send_Status_Req is in a loop, then it will call it in a loop. > This is the same whether or not the loop is inside the accept or > outside of it. The difference is that if it's inside the accept, it > will hold up the task (which could be the main program, technically > the "environment task") calling the entry being accepted, and if it's > not inside the accept, it won't; but other than that, the behavior > will be the same either way. I'm not clear on why you'd be confused > about this (i.e. why you think it would call Send_Status_Req only > once)---I suspect you may have some misconception about how tasks > work, but I can't think what it might be, so if this is still > confusing to you, you may need to explain a little more clearly what > you're confused about, so that we can help clear up whatever > misunderstanding you may have. Please note that I wrote all this before I saw your latest post where you had gotten things to work. So it looks like you've gotten everything figured out now---great! -- Adam