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,126ce244c524526b X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!l70g2000hse.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Tasking issues Date: Sun, 12 Aug 2007 14:03:29 -0700 Organization: http://groups.google.com Message-ID: <1186952609.555317.144640@l70g2000hse.googlegroups.com> References: <1186851804.567302.223160@q4g2000prc.googlegroups.com> NNTP-Posting-Host: 85.3.254.252 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1186952609 18822 127.0.0.1 (12 Aug 2007 21:03:29 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 12 Aug 2007 21:03:29 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: l70g2000hse.googlegroups.com; posting-host=85.3.254.252; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:1415 Date: 2007-08-12T14:03:29-07:00 List-Id: On 12 Sie, 11:00, a...@anon.org (anon) wrote: > -- This works I doubt it. > continue : boolean := True ; -- task to continue running Show me the guarantee that changes of this variable made by one task are visible to another task or even that it's not going to crash in flames. Hint: 9.10/11. > -- do nothing! > > while continue loop > delay 0.0 ; > end loop ; This code does quite a lot, actually (let's put the above issues aside for a moment). In embedded device that runs on a battery this is a very effective way to drain it, fast. -- Maciej Sobczak http://www.msobczak.com/