comp.lang.ada
 help / color / mirror / Atom feed
From: "Alexander Boucke" <alexb@lufmech.rwth-aachen.de>
Subject: Re: Making a package safe for use by multiple tasks
Date: Fri, 7 Jun 2002 13:47:43 +0200
Date: 2002-06-07T11:47:53+00:00	[thread overview]
Message-ID: <adq6h9$7t0$1@nets3.rz.RWTH-Aachen.DE> (raw)
In-Reply-To: 3D00956A.E19C904A@earthlink.net


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





  reply	other threads:[~2002-06-07 11:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-07 10:07 Making a package safe for use by multiple tasks Alexander Boucke
2002-06-07 11:11 ` Marc A. Criley
2002-06-07 11:47   ` Alexander Boucke [this message]
2002-06-07 13:31 ` Dr. Michael Paus
2002-06-07 13:44   ` Making a package safe for use by multiple tasks (Correction) Dr. Michael Paus
2002-06-07 15:00 ` Making a package safe for use by multiple tasks Ted Dennison
2002-06-07 16:37 ` Georg Bauhaus
2002-06-07 21:16 ` Jeffrey Carter
2002-06-08 13:14   ` Craig Carey
2002-06-08 13:39     ` Dr. Michael Paus
  -- strict thread matches above, loose matches on Subject: below --
2002-06-07 10:14 Grein, Christoph
2002-06-07 10:29 ` Alexander Boucke
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox