comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: Generic Formal Parameter for a Task Type
Date: Thu, 8 Mar 2001 18:27:35 -0500
Date: 2001-03-08T23:28:10+00:00	[thread overview]
Message-ID: <9894ia$pj0$1@nh.pace.co.uk> (raw)
In-Reply-To: 3AA80A68.A2C8B042@worldnet.att.net

Stop me if I'm wrong on this.... :-)

One possible solution would be to use a private type as the parameter and
pass a pointer to the task - or a record containing the pointer. I don't
think there is a mechanism to pass a task type as a generic formal. Perhaps
the designers anticipated the pointer mechanism I mention.

MDC

--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/



"James Rogers" <jimmaureenrogers@worldnet.att.net> wrote in message
news:3AA80A68.A2C8B042@worldnet.att.net...
> I have looked through "Ada as a Second Language" and the Ada Reference
> manual. I cannot find any proper form to pass a task type as a
> generic formal parameter.
>
> Is there a generic formal parameter form for this purpose?
>
> I wanted to create a generic package I call Task_Governor. This
> package would control the number of tasks one could create at once.
> The idea is that task resources may be limited. This package would
> allow someone to limit the number of tasks to a maximum specified.
> An instantiation of the package would monitor the tasks it started
> and allow another to be started when one of the tasks terminated.
>
> My problem is that I cannot figure out how to specify a task type
> as a generic formal parameter.
>
> Any hints?
>
> Jim Rogers
> Colorado Springs, Colorado USA





  reply	other threads:[~2001-03-08 23:27 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 [this message]
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
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