Re: boost::phoenix plus threads

Joel de Guzman <[email protected]> Wed, 07 Jul 2010 13:14:34 +0800
Newsgroups gmane.comp.parsers.spirit.devel
Message-ID <[email protected]>
On 7/6/2010 1:16 PM, Andrey Asadchev wrote:
> hello.
>
> I would like to contribute extensions for parallel programming using
> threads together with phoenix lambda:
>
> For example such things are possible:
>
> thread::group(8) (
>      thread::parallel_for(i = range(N), j = range(i +1)) [
>          thread::critical[ std::cout << i << j ],
>          some_other_expression,
>          thread::throttle(2)[ only_2_at_time_expression]
>      ]
> )
>
> the source code is here:
> http://code.google.com/p/asadchev/source/browse/#svn/trunk/work/cxx/phoenix
>
> The parallel for loop can be implemented in principle for any parallel
> system since it only requires synchronized counter
>
> Please let me know if you have comments/suggestions
> thank you

That's very interesting indeed. You might want to be placed in the
email correspondence list for the on going Phoenix-3 development.
It would be good to discuss your ideas there. Interested?

Regards,
-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first