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: "J-P. Rosen" 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 21:26:47 +0200 Organization: A noiseless patient Spider 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 19:26:47 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="214e2226c9a2cb4f71713357be0d6925"; logging-data="31574"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tYMDBa1Hl2Jw1onZCzY94" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 In-Reply-To: <64942889-3a34-4251-9b1f-140c77a93717@googlegroups.com> Cancel-Lock: sha1:/klV8llm8nDSr7+alyU7HEMer1s= Xref: news.eternal-september.org comp.lang.ada:31521 Date: 2016-08-23T21:26:47+02:00 List-Id: Le 23/08/2016 à 19:52, Egil H H a écrit : > On Tuesday, August 23, 2016 at 7:15:46 PM UTC+2, Some Dude wrote: >> Hi! I've also asked this on Stackoverflow because I'm really stuck with > > 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. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr