comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: some remarks and requests for confirmation on tasks and protected objects
Date: Tue, 6 Mar 2018 14:25:36 -0600
Date: 2018-03-06T14:25:36-06:00	[thread overview]
Message-ID: <p7mtg0$s16$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: p7m5n3$fp6$1@gioia.aioe.org

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message 
news:p7m5n3$fp6$1@gioia.aioe.org...
...
> I think this is related to inability to change entry call parameters. That 
> is the only practical use case for families.

Not sure fo the context here, but IMHO the only practical use case for a PO 
families is when you need to refer to a parameter in a barrier. (Unlike a 
task, there is only one body for the entire family, so the family index 
works like a parameter that can be used in a barrier.)

I'm not sure there is any real use case for a task family. The need to write 
separate accepts for each value makes it impractical to have more than a 
handful.

Moral: the only commonality between task and PO families is the way that 
they're called. The underlying implementation (both in Ada source and in the 
compiled program) is completely different, and thus so are the use cases.

                                      Randy.



  reply	other threads:[~2018-03-06 20:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-06 11:43 some remarks and requests for confirmation on tasks and protected objects Mehdi Saada
2018-03-06 13:39 ` Dmitry A. Kazakov
2018-03-06 20:25   ` Randy Brukardt [this message]
2018-03-06 21:22     ` Dmitry A. Kazakov
2018-03-06 21:10   ` Simon Wright
replies disabled

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