comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Q: Binding tasks to CPU's seems not to work with Task_Info pragma?!
Date: Mon, 12 Aug 2013 15:34:58 -0500
Date: 2013-08-12T15:34:58-05:00	[thread overview]
Message-ID: <kubgti$lei$1@loke.gir.dk> (raw)
In-Reply-To: 520699bb$0$2256$afc38c87@news6.united-newsserver.de

Why are you using that rather than the Ada 2012 pragma (or better yet, 
aspect) CPU?

     task type Task_Type (Id : Ada.Multiprocessors.CPU) is
         pragma Priority(4);
         pragma CPU(Id);
      end Task_Type;

or better still:

     task type Task_Type (Id : Ada.Multiprocessors.CPU)
       with Priority => 4, CPU => Id is
     end Task_Type;

                             Randy.

"Michael Erdmann" <michael.erdmann@snafu.de> wrote in message 
news:520699bb$0$2256$afc38c87@news6.united-newsserver.de...
> On Sat, 10 Aug 2013 12:17:03 -0700, AdaMagica wrote:
>
>> Pragma Task_Info is not standard Ada. Must be GNAT specific.
>
> Yes; it is GNAT specific:
>
> http://gcc.gnu.org/onlinedocs/gnat_rm/Pragma-Task_005fInfo.html
>
>
> /Michael
> 




  reply	other threads:[~2013-08-12 20:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-10 17:56 Q: Binding tasks to CPU's seems not to work with Task_Info pragma?! Michael Erdmann
2013-08-10 19:17 ` AdaMagica
2013-08-10 19:51   ` Michael Erdmann
2013-08-12 20:34     ` Randy Brukardt [this message]
2013-08-12 21:49       ` Simon Wright
2013-08-13  4:29       ` Michael Erdmann
2013-08-13  5:15         ` Jeffrey Carter
replies disabled

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