On Thu, 2014-10-09 at 11:29 +, Sag Academy via Digitalmars-d-learn
wrote:
On Thursday, 9 October 2014 at 10:10:20 UTC, Konstantin wrote:
Are you looking for parallel?
http://dlang.org/library/std/parallelism/parallel.html
I have seen this, but I'm not sure how to use it.
Maybe:
Are you looking for parallel?
http://dlang.org/library/std/parallelism/parallel.html
I have seen this, but I'm not sure how to use it.
Maybe:
float[][] maps = new float[#threads][resolution * resolution];
foreach(i, ref elem; parallel(maps)){
elem = generateTerrain(...);
}
Does this
On Thursday, 9 October 2014 at 10:10:20 UTC, Konstantin wrote:
Are you looking for parallel?
http://dlang.org/library/std/parallelism/parallel.html
I have seen this, but I'm not sure how to use it.
Maybe:
float[][] maps = new float[#threads][resolution * resolution];
foreach(i, ref elem;
On 10/09/2014 03:10 AM, Konstantin wrote:
Are you looking for parallel?
http://dlang.org/library/std/parallelism/parallel.html
I have seen this, but I'm not sure how to use it.
I have the following chapter with some examples:
http://ddili.org/ders/d.en/parallelism.html
If concurrency is
What I imagine as solution (I know it won't work this way, but
to give you a better idea):
for(int i = 0; i #threads; i++){
runInThread(generateTerrain(...));
}
Are you looking for parallel?
http://dlang.org/library/std/parallelism/parallel.html