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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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 16:18:07 PST Path: supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!howland.erols.net!newsfeed.mathworks.com!cyclone.swbell.net!nnrp3.sbc.net.POSTED!not-for-mail From: "Pat Rogers" Newsgroups: comp.lang.ada References: <3AA80A68.A2C8B042@worldnet.att.net> Subject: Re: Generic Formal Parameter for a Task Type 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 Message-ID: Date: Thu, 8 Mar 2001 18:16:03 -0600 NNTP-Posting-Host: 208.191.184.67 X-Complaints-To: abuse@swbell.net X-Trace: nnrp3.sbc.net 984096971 208.191.184.67 (Thu, 08 Mar 2001 18:16:11 CST) NNTP-Posting-Date: Thu, 08 Mar 2001 18:16:11 CST Organization: SBC Internet Services Xref: supernews.google.com comp.lang.ada:5559 Date: 2001-03-08T18:16:03-06:00 List-Id: "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. There is no generic formal task type; you have to use a limited private formal. --- Patrick Rogers Consulting and Training in: http://www.classwide.com Real-Time/OO Languages progers@classwide.com Hard Deadline Schedulability Analysis (281)648-3165 Software Fault Tolerance