comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: some remarks and requests for confirmation on tasks and protected objects
Date: Tue, 6 Mar 2018 22:22:48 +0100
Date: 2018-03-06T22:22:48+01:00	[thread overview]
Message-ID: <p7n0r7$2d1$1@gioia.aioe.org> (raw)
In-Reply-To: p7mtg0$s16$1@franka.jacob-sparre.dk

On 2018-03-06 21:25, Randy Brukardt wrote:
> "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.)

Right, I am using it for waiting for a condition which cannot be used in 
a barrier. There is a family indexed by Boolean guarded by the expression

    Index = Toggle

When the awaited condition is not satisfied the call is requeued to the 
complementary entry (not Index).

When the condition is about to change Toggle is toggled and the 
complementary entry gets open.

> I'm not sure there is any real use case for a task family.

I never used that, maybe something like above.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


  reply	other threads:[~2018-03-06 21:22 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
2018-03-06 21:22     ` Dmitry A. Kazakov [this message]
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