comp.lang.ada
 help / color / mirror / Atom feed
From: Rob Norris <firstname.lastname@baesystems.com>
Subject: Re: Impossible problem? A protected buffer to queue objects of a class-wide type
Date: Wed, 11 Apr 2007 13:25:54 +0100
Date: 2007-04-11T13:25:54+01:00	[thread overview]
Message-ID: <ilkp139uool31fc8opd7b94jpmctvndeg3@4ax.com> (raw)
In-Reply-To: 461cc46d$1_1@glkas0286.greenlnk.net

>
>(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.




  reply	other threads:[~2007-04-11 12:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-11 11:34 Impossible problem? A protected buffer to queue objects of a class-wide type Phil Slater
2007-04-11 12:25 ` Rob Norris [this message]
2007-04-11 13:02   ` Phil Slater
2007-04-12  8:36     ` Stephen Leake
2007-04-11 13:14 ` Dmitry A. Kazakov
2007-04-11 14:01 ` Jean-Pierre Rosen
2007-04-11 17:18 ` tmoran
2007-04-13 17:02 ` Matthew Heaney
2007-04-13 17:26   ` Matthew Heaney
2007-04-13 17:36   ` Ed Falis
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox