How to call stop from parallel foreach

seany seany at uni-bonn.de
Fri Jun 25 15:11:39 UTC 2021


On Friday, 25 June 2021 at 15:08:38 UTC, Ali Çehreli wrote:
> On 6/25/21 7:21 AM, seany wrote:
>
> > The code without the parallel foreach works fine. No segfault.
>
> That's very common.
>
> What I meant is, is the code written in a way to work safely in 
> a parallel foreach loop? (i.e. Is the code "independent"?) (But 
> I assume it is because it's been the common theme in this 
> thread; so there must be something stranger going on.)
>
> Ali

I have added MWP. did you have a chance to look at it?



More information about the Digitalmars-d-learn mailing list