Variable modified by different threads.

Ali Çehreli acehreli at yahoo.com
Tue Dec 3 22:20:27 UTC 2024


On 12/3/24 9:47 AM, Richard (Rikki) Andrew Cattermole wrote:
 > On 04/12/2024 6:37 AM, Nick Treleaven wrote:

 >> |shared| - shared (i.e. accessible) across threads.
 >
 > That is already true.

That conflicts with my knowledge of data being thread-local by default in D.

 > You don't need a type qualifier to tell you that.
 >
 > What you need the compiler assistance for, is to tell you that it is NOT
 > accessible to multiple threads.

I think you are objecting to D's thread-local by default decision but 
I'm not sure. :)

Ali



More information about the Digitalmars-d-learn mailing list