How works internally ParallelForEach

thedeemon dlang at thedeemon.com
Sat Dec 1 04:51:26 PST 2012


On Saturday, 1 December 2012 at 11:36:16 UTC, Zardoz wrote:

> The prevois code should work better if i set "total" to be 
> sahred and hope that D shared vars have nnow the internal 
> barries working ,or I need to manually use semaphores ?

Probably core.atomic is the way to go. Semaphore is an overkill.


More information about the Digitalmars-d-learn mailing list