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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,a4db0fc323f0b09e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!not-for-mail From: Reto Buerki Newsgroups: comp.lang.ada Subject: Re: Barrier re-evaluation issue with GNAT 4.3.2 Date: Mon, 28 Sep 2009 12:28:52 +0200 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: news.eternal-september.org U2FsdGVkX181MyouCdhi046oU7JbWpgrkEI6DJ7HokzrbtPTVtJivz6tP07tw9eDSYzHamfEgWLTnN8CrvV4rKYamJf2ndkdr9AgCEX4G2tWvmlJM27CbOpsU38Lvx6syEHWU/bsahIcVkExe6SxLg== X-Complaints-To: abuse@eternal-september.org NNTP-Posting-Date: Mon, 28 Sep 2009 10:28:40 +0000 (UTC) In-Reply-To: X-Auth-Sender: U2FsdGVkX18oShW2Qoi0/3pN6BqvCbEeAND7+qK9kSo= Cancel-Lock: sha1:mwvhYjKfG/jbBi77yyK1qERC494= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) Xref: g2news2.google.com comp.lang.ada:8509 Date: 2009-09-28T12:28:52+02:00 List-Id: John B. Matthews wrote: > I get the same result with FSF GNAT 4.3.4. I revised your code to follow > the "protected Event" example seen here: > > > > It seems to work. The compiler warns, "potentially blocking operation in > protected operation" in Wakeup, although the Signal barrier is always > true. I'm not sure the extra entries _should_ be required, but I think > it might be more reliable in the face of multiple threads calling Wait. > I don't know a reason why it wouldn't work under 4.3.2. Thanks for your effort in confirming the issue with GNAT 4.3.4 and for the "protected Event" example. We will see how we can integrate your idea into our project as a workaround for the re-evaluation problem.