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,9bc0262607f781e9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-07 04:47:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-han1.dfn.de!news-fra1.dfn.de!news.rwth-aachen.de!not-for-mail From: "Alexander Boucke" Newsgroups: comp.lang.ada Subject: Re: Making a package safe for use by multiple tasks Date: Fri, 7 Jun 2002 13:47:43 +0200 Organization: Lehr- und Forschungsgebiet f. Mechanik Message-ID: References: <3D00956A.E19C904A@earthlink.net> NNTP-Posting-Host: 134.130.177.114 X-Trace: nets3.rz.RWTH-Aachen.DE 1023450473 8096 134.130.177.114 (7 Jun 2002 11:47:53 GMT) X-Complaints-To: abuse@rwth-aachen.de NNTP-Posting-Date: 7 Jun 2002 11:47:53 GMT X-Newsreader: Microsoft Outlook Express Unix 5.00.2013.1312 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2013.1312 Xref: archiver1.google.com comp.lang.ada:25446 Date: 2002-06-07T11:47:53+00:00 List-Id: Marc A. Criley wrote in message <3D00956A.E19C904A@earthlink.net>... >Alexander Boucke wrote: >> > >Just off the top of my head...I don't know if this would be practical >for you or not, but if you just want to try something quick and dirty, >you could try this: > >Convert the package into a generic package, i.e., just add "generic" to >the package spec, then instantiate an instance of the package for each >task. > >It's an inelegant and wasteful hack, but hey, I warned you that it was >quick and dirty :-) :-) > >Marc A. Criley >Consultant >Quadrus Corporation >www.quadruscorp.com A bit too quick and dirty indeed, especially as the vectors from different instances are then different types... I think the approach that C. Grein gave me about using Task_Attributes is just right. This seems to be an easy way to get a single tmp object for each task and still have one vector type for the whole program. Alexander