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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.20.213 with SMTP id 204mr6649402iou.15.1465040981415; Sat, 04 Jun 2016 04:49:41 -0700 (PDT) X-Received: by 10.157.8.4 with SMTP id 4mr106482oty.9.1465040981232; Sat, 04 Jun 2016 04:49:41 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!p34no2479142qgp.1!news-out.google.com!107ni108qgx.1!nntp.google.com!p34no2479139qgp.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 4 Jun 2016 04:49:40 -0700 (PDT) In-Reply-To: <1bc41b66-8dd4-4b4e-903e-f314babc07f9@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=86.146.61.106; posting-account=28F2IwkAAACL1Z5nRC-dE7zuvWdbWC7P NNTP-Posting-Host: 86.146.61.106 References: <1bc41b66-8dd4-4b4e-903e-f314babc07f9@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Buffer PO From: tonyg Injection-Date: Sat, 04 Jun 2016 11:49:41 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 1648 X-Received-Body-CRC: 1609686816 Xref: news.eternal-september.org comp.lang.ada:30600 Date: 2016-06-04T04:49:40-07:00 List-Id: Thanks for your replies. I did not come across them till I settled on a sol= ution , but thanks. What I settled on was , I made a peek function for the discriminant, which I used just before pop= ping and then within the PO to check before I popped.I added a success flag= to the pop and if the second peek was different then success was marked fa= lse and the pop was not done, and the calling procedure would exit a loop i= f successful, if not a delay then a retry ( which is very very rare but cou= ld happen).