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: 103376,a31b00ad713d92f9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newshub.stanford.edu!news.kjsl.com!news-peer-lilac.gradwell.net!not-for-mail From: Rob Norris Newsgroups: comp.lang.ada Subject: Re: Impossible problem? A protected buffer to queue objects of a class-wide type Date: Wed, 11 Apr 2007 13:25:54 +0100 Message-ID: References: <461cc46d$1_1@glkas0286.greenlnk.net> X-Newsreader: Forte Free Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net NNTP-Posting-Host: 20.133.0.1 X-Trace: 1176294335 news.gradwell.net 760 dnews/20.133.0.1:56143 X-Complaints-To: news-abuse@gradwell.net Xref: g2news1.google.com comp.lang.ada:14908 Date: 2007-04-11T13:25:54+01:00 List-Id: > >(b) To support this call, Dequeue must be written as a function. As such, it >cannot change the protected queue. What I need is the "entry" functionality, >since I want the Dequeue to wait if the queue is empty, and I want the item >to be removed from the queue as well as retrieved. Quick thought: Is it possible to pass into the function a reference to the queue? Then you should be able change the content of the queue as you see fit.