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!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: How do I get an enctry in a protected object to block until a certain item arrives from a producer task? Date: Tue, 23 Aug 2016 13:02:28 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <64942889-3a34-4251-9b1f-140c77a93717@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 23 Aug 2016 20:02:36 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="d7c030f56102b58a2c16dea977db88bb"; logging-data="6999"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rdaXJnAcZR9O5uGFGCRZxgGRTVS/bV+w=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 In-Reply-To: Cancel-Lock: sha1:EiZcpMLZ+6fFaXuq4cbn9hNvJWw= Xref: news.eternal-september.org comp.lang.ada:31523 Date: 2016-08-23T13:02:28-07:00 List-Id: On 08/23/2016 12:26 PM, J-P. Rosen wrote: > Le 23/08/2016 à 19:52, Egil H H a écrit : >> >> I just answered this on stackoverflow. If Command_Id_Type is a discrete type, what you need is an entry family (which is like an array of entries) >> see the stackoverflow answer for an example >> > Or accept the entry, and if the proper data is not there, requeue. This is called Preference Control, "where the ability to satisfy a request depends on the parameters passed in". An example is given in AARM-95 9.2.1 http://www.adaic.org/resources/add_content/standards/95rat/rat95html/rat95-p2-9.html#2 -- Jeff Carter "I've seen projects fail miserably for blindly applying the Agile catechism: we're Agile, we don't need to stop and think, we just go ahead and code!" Bertrand Meyer 150