On Saturday, 26 September 2015 at 12:33:45 UTC, anonymous wrote:
foreach (f; parallel(iota(1, 1000000+1)))
{
synchronized i += f;
}
Is this valid syntax? I've never seen synchronized used like this before.
Meta via Digitalmars-d-learn Sat, 26 Sep 2015 06:11:11 -0700
On Saturday, 26 September 2015 at 12:33:45 UTC, anonymous wrote:
foreach (f; parallel(iota(1, 1000000+1)))
{
synchronized i += f;
}
Is this valid syntax? I've never seen synchronized used like this before.