boost::phoenix plus threads

Andrey Asadchev <[email protected]> Tue, 6 Jul 2010 00:16:07 -0500
Newsgroups gmane.comp.parsers.spirit.devel
Message-ID <[email protected]>
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

------------------------------------------------------------------------------
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

_______________________________________________
Spirit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spirit-devel