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: a07f3367d7,229eda63f0d80a47 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!2a02:590:1:1::196.MISMATCH!news.teledata-fn.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 09 Nov 2010 12:40:22 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Q: Profiles References: <4cd3e506$0$6992$9b4e6d93@newsspool4.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4cd93326$0$7668$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 09 Nov 2010 12:40:23 CET NNTP-Posting-Host: f4cbcd90.newsspool1.arcor-online.net X-Trace: DXC=cM@jVe`jLh>_cHTX3jm]o1jS1T5g>e X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:16373 Date: 2010-11-09T12:40:23+01:00 List-Id: On 09.11.10 12:04, Matteo Bordin wrote: >> What if I just want the lean and efficient Ravenscar run-time >> but do want my tasks to terminate? > > Why don't you just let your task suspend forever on an entry whose > barrier is never opened? The program is supposed to terminate (and I cannot change that setup). Did I understand correctly? Would there be a difference if the line Never.Enter_Castle were commented out? pragma Profile (Ravenscar); package Demo is pragma Elaborate_Body(Demo); task Ending; end Demo; package body Demo is protected Never is entry Enter_Castle; end Never; protected body Never is entry Enter_Castle when False is begin null; end Enter_Castle; end Never; task body Ending is begin -- ... Never.Enter_Castle; end Ending; begin null; end Demo;