comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: dynamically create tasks
Date: Sat, 11 Oct 2014 07:01:07 +0100
Date: 2014-10-11T07:01:07+01:00	[thread overview]
Message-ID: <ly4mvb16xo.fsf@pushface.org> (raw)
In-Reply-To: 47e42c27-69ba-44fc-861f-c230f5ac04f4@googlegroups.com

compguy45@gmail.com writes:

> If you have one task body and would like to create 5 of these tasks
> since there is one task body there will only be one task created plus
> main task....how would you create 20 tasks with same body?  is there
> way to do this?

   task type T is
      ...
   end T;

   Tasks : array (1 .. 20) of T;

   ...

   task body T is
   ...
   end T;

See ARM 9.1(2), vs single_task_declaration, (3).


      parent reply	other threads:[~2014-10-11  6:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-11  1:49 dynamically create tasks compguy45
2014-10-11  2:20 ` Shark8
2014-10-11  5:53 ` Niklas Holsti
2014-10-11 13:02   ` compguy45
2014-10-11 14:51     ` Dmitry A. Kazakov
2014-10-11 16:34       ` compguy45
2014-10-11 17:29         ` Ludovic Brenta
2014-10-11 18:52         ` Brad Moore
2014-10-11  6:01 ` Simon Wright [this message]
replies disabled

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