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