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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: some remarks and requests for confirmation on tasks and protected objects Date: Tue, 6 Mar 2018 22:22:48 +0100 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: YJsgWZm9+6e1o2iiapFTNA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.8.3 Xref: reader02.eternal-september.org comp.lang.ada:50863 Date: 2018-03-06T22:22:48+01:00 List-Id: On 2018-03-06 21:25, Randy Brukardt wrote: > "Dmitry A. Kazakov" 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