How to share an appender!string?

Era Scarecrow via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu May 19 12:49:11 PDT 2016


On Thursday, 19 May 2016 at 19:31:26 UTC, Era Scarecrow wrote:
> An alternate to writing a custom appender is simply to make the 
> assignment atomic. Haven't tried this but if you did 'shared 
> string[] lines;'
>
>  I'll experiment with this and get back with you. 
> Multi-threading isn't my strong suit either.

  Experimented and quickly got what looks like good clean results. 
Took your code, ripped out what I didn't want and added in what I 
did. Simple!

  https://dpaste.dzfl.pl/6952fdf463b66




More information about the Digitalmars-d-learn mailing list