comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Task Discriminants & Arrays
Date: 1997/05/15
Date: 1997-05-15T00:00:00+00:00	[thread overview]
Message-ID: <EA8n1w.Hvn@world.std.com> (raw)
In-Reply-To: 337B09C9.62BB@sprintmail.com


In article <337B09C9.62BB@sprintmail.com>,
John G. Volan <johnvolan@sprintmail.com> wrote:
>  task type Process_Type
>    (Process_Id : Process_Id_Type := Get_New_Process_Id)
>     -- Note: We have to make sure this function is already
>     -- elaborated at this point; probably needs to be in another
>     -- package

Not at *this* point.  Just before you create any objects of this type.

>  is
>    ...
>  end Process_Type;
>
>  type Process_Access_Type is access all Process_Type;
>
>  type Process_Array_Type is
>    array (Process_Index_Type range <>) of aliased Process_Type;
>    -- Note: Process_Index_Type does not necessarily have to be
>    -- the same as Process_Id_Type.  In fact, they probably should
>    -- be different to avoid confusing the id of a process with its
>    -- arbitrary location in such an array, which won't necessarily
>    -- be the same.

Good point.

>    Process_Array : aliased Process_Array_Type (1 .. 1E6);
>    -- Wham!! ... all activated at once

Yeah, right.  A million tasks.

>...
>  end Jeff_Carters_Million_Processes;
>
>:-) :-) :-)

Sorry, I don't get it.  Are you saying "this is a mess"?  Yeah, it is.
Shrug.

- Bob




  reply	other threads:[~1997-05-15  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     ` Mats Weber
1997-05-15  0:00     ` Robert A Duff
1997-05-15  0:00       ` John G. Volan
1997-05-15  0:00         ` Robert A Duff [this message]
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-13  0:00 ` Jeff Carter
1997-05-13  0:00   ` Matthew Heaney
1997-05-13  0:00   ` John G. Volan
1997-05-14  0:00     ` Jeff 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