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,7caa1b2a6d36aa0e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-30 12:13:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!news-feed.riddles.org.uk!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Task storage size Date: Wed, 30 Jul 2003 14:15:30 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3f266925$1@baen1673807.greenlnk.net> <3F26D939.3030003@attbi.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:41037 Date: 2003-07-30T14:15:30-05:00 List-Id: "Robert I. Eachus" wrote in message news:3F26D939.3030003@attbi.com... > Martin Dowie wrote: > > How can I create many instances of a task type with different Storage_Size > > values? > > > > I can set the priority of each by parameterizing the task type, e.g. > > task type A_Task (Priority : System.Priority := System.Default_Priority); > > but I can't see any way of having different Storage_Size's... > > You can't. Huh? You do it the same why that you parameterize by Priorities: task type Foobar (My_Storage_Size : Natural) is pragma Storage_Size (My_Storage_Size); ... end Foobar; See 13.3(62-64). You couldn't do it in Ada 83, of course, but you certainly can in Ada 95. Randy.