Boost logo

Boost :

Subject: Re: [boost] GSoC: Boost.Pipeline -- scheduling of segments
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2014-07-02 01:51:57


Hello Benedek,

2014-07-01 23:24 GMT+02:00 Benedek Thaler <thalerbenedek_at_[hidden]>:

>
> 1. Dedicate a thread to each segment (what to do with a fixed size
> threadpool?)
> 2. Constrain the transformations to be reentrant.
> 3. Run each transformations until there is input to be processed, from
> beginning to the end.
>

You could use boost.fiber (std::thread-like API) to run multiple tasks
(transformations) inside
a single thread concurrently. At least with fibers you can use a fixed size
threadpool without
overloading/blocking the pool with too many tasks.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk