From: "John G. Volan" <johnvolan@sprintmail.com>
Subject: Re: Task Discriminants & Arrays
Date: 1997/05/13
Date: 1997-05-13T00:00:00+00:00 [thread overview]
Message-ID: <3378A5C5.5401@sprintmail.com> (raw)
In-Reply-To: 33787506.41C67EA6@spam.innocon.com
Jeff Carter wrote:
>
> As I understand it, task discriminants were intended to eliminate the
> "serial bottleneck" that results from having to call an initialization
> entry to provide information like this to task instances. However, as
> far as I can tell, it simply complicates matters: You have to declare an
> access type designating the task type, make your array type an array of
> these access types, then allocate the tasks at runtime:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
No, not necessarily:
>
> task type T (Id : Positive) is
> entry E;
> end T;
>
> type T_Ptr is access all T;
>
> type A is array (Some_Range) of T_Ptr;
>
T_1 : aliased T (Id => 1);
T_2 : aliased T (Id => 2);
T_3 : aliased T (Id => 3);
...
O : constant A :=
(1 => T_1'Access,
2 => T_2'Access,
3 => T_3'Access,
... );
------------------------------------------------------------------------
Internet.Usenet.Put_Signature
(Name => "John G. Volan", Home_Email => "johnvolan@sprintmail.com",
Slogan => "Ada95: The World's *FIRST* International-Standard OOPL",
Disclaimer => "These opinions were never defined, so using them " &
"would be erroneous...or is that just nondeterministic now? :-) ");
------------------------------------------------------------------------
next prev parent reply other threads:[~1997-05-13 0:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-13 0:00 Task Discriminants & Arrays Matthew Heaney
1997-05-13 0:00 ` Robert A Duff
1997-05-14 0:00 ` W. Wesley Groleau (Wes)
1997-05-15 0:00 ` Robert A Duff
1997-05-15 0:00 ` John G. Volan
1997-05-15 0:00 ` Robert A Duff
1997-05-16 0:00 ` John G. Volan
1997-05-16 0:00 ` John G. Volan
1997-05-15 0:00 ` Matthew Heaney
1997-05-15 0:00 ` John G. Volan
1997-05-15 0:00 ` Mats Weber
1997-05-13 0:00 ` Jeff Carter
1997-05-13 0:00 ` John G. Volan [this message]
1997-05-14 0:00 ` Jeff Carter
1997-05-13 0:00 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox