Boost logo

Boost :

Subject: Re: [boost] GSoC: Boost.Pipeline -- scheduling of segments
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2014-07-04 06:54:38

2014-07-04 11:52 GMT+02:00 Benedek Thaler <thalerbenedek_at_[hidden]>:

> What if the second element
> cannot be pushed to the downstream queue because it's full? The
> transformation should yield (and not spin).

that problem could be solved by fibers - if a fiber would enqueue an item
in a bounded-queue and
the queue is full, the fiber is suspended and the thread can resume another
fiber (executing another transformation).
if items are removed from the bounded-queue, the waiting fiber gets
notified an will be resumed, e.g. is able to
enqueue its item.

Boost list run by bdawes at, gregod at, cpdaniel at, john at