Re: std.parallism

2011-05-05 Thread Jason House
Misuse of std.parallelism can very easily cause accidental sharing of data. Both in the interfaces to std.parallelism and inside the code, the whole shared concept is intentionally side stepped. The only use of shared is when using atomic operations from druntime that were properly coded. I rai

std.parallism

2011-05-03 Thread jdrewsen
Hi, Does anyone know how unshared parameters are handled when executing a task in std.parallelism. Most of the examples uses them e.g. when iterating over an unshared array (parallelSort example). I did give the source a quick look but couldn't find a cast to shared for parameters anywh