First time using Parallel

Bastiaan Veelo Bastiaan at Veelo.net
Sun Dec 26 15:36:54 UTC 2021


On Sunday, 26 December 2021 at 15:20:09 UTC, Bastiaan Veelo wrote:
> So if you use `workerLocalStorage` to give each thread an 
> `appender!string` to write output to, and afterwards write 
> those to `stdout`, you'll get your output in order without 
> sorting.

Scratch that, I misunderstood the example. It doesn't solve 
ordering. The example works because order does not matter for 
addition. Sorry for spreading wrong information.

-- Bastiaan.


More information about the Digitalmars-d-learn mailing list