comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Asynchronous channels in Ada
Date: Sun, 21 Feb 2016 19:30:32 -0700
Date: 2016-02-21T19:30:32-07:00	[thread overview]
Message-ID: <nadrmm$mk6$1@dont-email.me> (raw)
In-Reply-To: <c850cac4-40d4-40c3-a850-4508e85f6460@googlegroups.com>

On 02/21/2016 03:57 PM, Hadrien Grasland wrote:
> 
> Let's put ourself in a typical usage scenario where you have a producer task
> and a consumer task, the former producing a stream of identically typed data
> that is read by the other. This producer/consumer pair may be part of a
> fairly large and complex data processing pipeline, such as a compiler
> frontend.
> 
> Now, something goes wrong on the producer side, for any reason, which
> prevents this task from correctly producing its next data packet. Yet the
> consumer is expecting said packet. One can then imagine a number of options
> for the producer :

Typically, such designs are used so the consumer doesn't need to know or care
about what happens with the producer, and so there's no need for anything
special about the queue or the data passed via it. Certainly this is the
assumption that most general-purpose solutions will take. If you have specific
needs that such solutions don't address, you will probably need to create a
specific solution.

That said, it would be very easy to add a Boolean value to the PragmARC blocking
protected queues that would cause an exception in a consumer when it next
attempts to get a value from the queue.

-- 
Jeff Carter
"Little blondes with long hair and short skirts and
boots and big chests and bright, witty, and perceptive."
Play It Again, Sam
128

  reply	other threads:[~2016-02-22  2:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-19 21:02 Asynchronous channels in Ada Hadrien Grasland
2016-02-19 21:45 ` Simon Wright
2016-02-19 23:31   ` Robert A Duff
2016-02-19 21:51 ` Jeffrey R. Carter
2016-02-19 23:53   ` Brad Moore
2016-02-20  9:54 ` Dmitry A. Kazakov
2016-02-21 22:57 ` Hadrien Grasland
2016-02-22  2:30   ` Jeffrey R. Carter [this message]
2016-02-22  8:48   ` Dmitry A. Kazakov
2016-02-22  9:28   ` Georg Bauhaus
2016-02-25  7:55 ` Hadrien Grasland
2016-03-24  2:37 ` rieachus
replies disabled

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