From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8a3e2ce4e6d56336 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-08 15:38:11 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!psinet-france!psiuk-f4!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Generic Formal Parameter for a Task Type Date: Thu, 8 Mar 2001 18:27:35 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9894ia$pj0$1@nh.pace.co.uk> References: <3AA80A68.A2C8B042@worldnet.att.net> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 984094090 26208 136.170.200.133 (8 Mar 2001 23:28:10 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 8 Mar 2001 23:28:10 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: supernews.google.com comp.lang.ada:5557 Date: 2001-03-08T23:28:10+00:00 List-Id: 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" 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