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.237.44.6 with SMTP id f6mr2967128qtd.25.1464968111389; Fri, 03 Jun 2016 08:35:11 -0700 (PDT) X-Received: by 10.157.5.183 with SMTP id 52mr57678otd.2.1464968111310; Fri, 03 Jun 2016 08:35:11 -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!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!p34no2161685qgp.1!news-out.google.com!z5ni74qge.0!nntp.google.com!p34no2161682qgp.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 3 Jun 2016 08:35:10 -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=24.6.21.101; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 24.6.21.101 References: <1bc41b66-8dd4-4b4e-903e-f314babc07f9@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Buffer PO From: Anh Vo Injection-Date: Fri, 03 Jun 2016 15:35:11 +0000 Content-Type: text/plain; charset=UTF-8 X-Received-Bytes: 1500 X-Received-Body-CRC: 1743173246 Xref: news.eternal-september.org comp.lang.ada:30581 Date: 2016-06-03T08:35:10-07:00 List-Id: On Friday, June 3, 2016 at 6:29:14 AM UTC-7, tonyg wrote: > I have a Fifo buffer in a protect object with a push / pop procedures and an is_empty function storing a gaggle of variant records. > > I did think of adding a function to peek at the discriminator, but this could cause a problem as a push may change the record being viewed before my pop. PO will guaranteed that this kind of problem will not happen. Anh Vo