associative array with Parallel
seany
seany at uni-bonn.de
Fri Jul 23 13:16:42 UTC 2021
On Thursday, 22 July 2021 at 16:39:45 UTC, Steven Schveighoffer
wrote:
> On 7/22/21 1:46 AM, seany wrote:
>> [...]
>
> Correct. You must synchronize on ii.
>
>> [...]
>
> This isn't valid code, because you can't append to an integer.
> Though I think I know what you meant. Is it thread-safe
> (assuming the array elements are appendable)? I think so, but
> I'd have to see a working example.
>
> [...]
you are right. in the pseudocode, i wanted to say: `ii[i] =
somefunc(dummy);`
More information about the Digitalmars-d-learn
mailing list