Ensuring allocation isn't thread-local?

Jaime benjamin.i.mccann at gmail.com
Sat Jan 22 19:10:50 UTC 2022


On Saturday, 22 January 2022 at 19:06:38 UTC, Adam D Ruppe wrote:
>
> No. Anything allocated with `new` is not thread local... and 
> even if it was, you can send the pointer to other threads 
> anyway.
>
> The only things in thread local storage are the direct values 
> in the non-shared global variables. What they actually point to 
> is just generally on the main heap just like anything else.

Thanks for the response. Good to know.


More information about the Digitalmars-d-learn mailing list