Boost logo

Boost Users :

Subject: Re: [Boost-users] [mapreduce] Prim Calculator
From: Craig Henderson (cdm.henderson_at_[hidden])
Date: 2009-08-22 15:07:59


> I'm afraid to admit that I f***ed up. The program is now working. I
> invalidated the iterators with a for loop before the for_each call.
> When I remove my for loop, the results are inside the output files.
>
> Cool stuff,
> Christian
>

Great! I've added my version to the sandbox at
http://svn.boost.org/svn/boost/sandbox/libs/mapreduce/examples/prime/

This includes a modified number_source that provides a range for each map
task to work on, reducing locking contention.

Regards
-- Craig


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net