Boost logo

Boost :

Subject: Re: [boost] [threadpool] parallel_sort example
From: Phil Endecott (spam_from_boost_dev_at_[hidden])
Date: 2009-03-02 09:35:46


vicente.botet wrote:
> I have implemented a parallel sort with the threadpool library

Hi Vicente,

I have not tried to totally understand your code, but can you explain:

> partition<Range> parts(range, BOOST_PARTS);

> return boost::inplace_merge(rng, boost::begin(rng)+(boost::size(rng)/2));

Is this right when BOOST_PARTS != 2 ?

Phil.


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