From: James Rogers <jimmaureenrogers@worldnet.att.net>
Subject: Re: Generic Formal Parameter for a Task Type
Date: Fri, 09 Mar 2001 04:58:56 GMT
Date: 2001-03-09T04:58:56+00:00 [thread overview]
Message-ID: <3AA86389.E7D8B805@worldnet.att.net> (raw)
In-Reply-To: 1YYp6.431$ea4.144930@nnrp3.sbc.net
Pat Rogers wrote:
>
> See RM C.7.1 for package Ada.Task_Identification, specifically function
> Is_Terminated. That may be enough...
>
According to RM C.7.1(5):
"A value of the type Task_ID identifies an existent task. The constant
Null_Task_Id does not identify and task. Each object of the type
Task_ID is default initialized to the value of Null_Task_Id."
This means that I would need to create the task object outside the
generic package. Inside the generic package I could not clearly
identify the limited private type as a task. It could not, therefore
have a Task_ID. My generic package cannot control the creation
of task objects outside its own scope. I must be able to create the
task object within the scope of the generic package.
The best I could do inside the generic package is create a number
of Task_ID objects, all with the default value of Null_Task_Id.
Jim Rogers
Colorado Springs, Colorado USA
next prev parent reply other threads:[~2001-03-09 4:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-08 22:38 Generic Formal Parameter for a Task Type James Rogers
2001-03-08 23:27 ` Marin David Condic
2001-03-09 0:00 ` Robert A Duff
2001-03-09 0:16 ` Pat Rogers
2001-03-09 3:34 ` James Rogers
2001-03-09 4:26 ` Pat Rogers
2001-03-09 4:58 ` James Rogers [this message]
2001-03-09 15:50 ` Stephen Leake
2001-03-10 3:15 ` James Rogers
-- strict thread matches above, loose matches on Subject: below --
2001-03-09 4:20 Beard, Frank
2001-03-09 5:24 ` James Rogers
2001-03-09 21:50 ` Tucker Taft
2001-03-10 0:14 ` Robert C. Leif, Ph.D.
2001-03-12 16:14 ` Tucker Taft
2001-03-10 3:25 ` James Rogers
2001-03-12 15:33 ` Stephen Leake
2001-03-12 16:11 ` Tucker Taft
2001-03-09 22:53 Beard, Frank
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox