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!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Task_Barriers Date: Fri, 26 Jul 2019 08:52:13 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="5c170a9efc4470b4fd7cbf678b15527e"; logging-data="14192"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/baCSG4YTA3AlQtzg4kJkd44lXqgUCoyM=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) Cancel-Lock: sha1:fNeSiHKScZc1LUPv0/ABuUiYSA4= sha1:JS4Zhk8ZLxEWDxe0uDa3qeoD3aU= Xref: reader01.eternal-september.org comp.lang.ada:56949 Date: 2019-07-26T08:52:13+01:00 List-Id: "Randy Brukardt" writes: > There's nothing in the definition of either task that would cause it > to exit, regardless of what the barrier does, so the only result could > possibly be to run more-or-less forever. (As noted by someone else, > the loops run too slowly for overflow to happen on the counter, and > there is no exit.) Yes, but ... > "Simon Wright" wrote in message > news:lyv9vpamxi.fsf@pushface.org... >> Gilbert Gosseyn writes: >> >>> although it should stop when reaching an internal count number >> >> What internal count number is that? ... my (somewhat over-Socratic) point was, "you (OP) talk about an 'internal count number' but your code has no such thing, I think you may be showing us a different version of your code from that which actually has the problem".