comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Q: Profiles
Date: Tue, 09 Nov 2010 12:40:22 +0100
Date: 2010-11-09T12:40:23+01:00	[thread overview]
Message-ID: <4cd93326$0$7668$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <d4cd1137-c8a5-40b3-9304-74e843040986@x42g2000yqx.googlegroups.com>

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;



  reply	other threads:[~2010-11-09 11:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-05 11:05 Q: Profiles Georg Bauhaus
2010-11-05 11:37 ` Yannick Duchêne (Hibou57)
2010-11-05 11:50   ` Georg Bauhaus
2010-11-05 20:14 ` Vinzent Hoefler
2010-11-05 20:59   ` Georg Bauhaus
2010-11-05 21:28     ` Vinzent Hoefler
2010-11-05 23:11       ` Ed Falis
2010-11-06  0:03         ` Georg Bauhaus
2010-11-06  3:27         ` Yannick Duchêne (Hibou57)
2010-11-06 14:43           ` Ed Falis
2010-11-06 14:53             ` Ludovic Brenta
2010-11-06 18:51               ` Ed Falis
2010-11-09 11:04 ` Matteo Bordin
2010-11-09 11:40   ` Georg Bauhaus [this message]
2010-11-09 13:09     ` Matteo Bordin
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox