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!mx02.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: confusion about message passing between the tasks Date: Sun, 26 Oct 2014 13:36:09 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Sun, 26 Oct 2014 20:36:05 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="206f88a41f45fc94d25d07d064d738e2"; logging-data="23110"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fB9e25kOeb9px/4e4/fRepRqtcmgnBKo=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: Cancel-Lock: sha1:K2E2vQo9lExmjGY5ctS0P0XjcHE= Xref: news.eternal-september.org comp.lang.ada:22782 Date: 2014-10-26T13:36:09-07:00 List-Id: On 10/26/2014 01:31 PM, Robert A Duff wrote: > > ...but the other way around isn't true. Here's Tucker's example that > convinced me that some sort of "pragma Passive(Buffer_Task);" wasn't > going to cut it. Write a PO a that is in one of two states, > "accepting calls to Entry_1" and "accepting calls to Entry_2", > never in both states at the same time, and never in neither state > (as observed by callers). Pretty easy. With rendezvous, not so > much. That seems pretty straightforward, whether with a PO or a passive task. Is there some complication I'm missing? -- Jeff Carter "Why, the Mayflower was full of Fireflies, and a few horseflies, too. The Fireflies were on the upper deck, and the horseflies were on the Fireflies." Duck Soup 95