Advice on threading/fibers/?

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Thu Jun 16 06:30:42 PDT 2011


On Thu, 16 Jun 2011 13:22:33 +0000, Lars T. Kyllingstad wrote:

> On Wed, 15 Jun 2011 23:57:25 +0000, Justin Whear wrote:
> 
>> Any thoughts appreciated.
> 
> I would recommend you take a look at the new std.parallelism module,
> which was introduced in the most recent DMD release (2.053):
> 
> http://www.d-programming-language.org/phobos-prerelease/
> std_parallelism.html

Specifically, check out TaskPool.parallel(), TaskPool.amap(), TaskPool.map
() and TaskPool.reduce().  My guess is one or more of these will be 
exactly what you need.

-Lars 


More information about the Digitalmars-d-learn mailing list