shared - no read/write access

Rubn where at is.this
Mon Mar 25 21:04:37 UTC 2019


On Monday, 25 March 2019 at 08:36:42 UTC, Kagamin wrote:
> On Thursday, 21 March 2019 at 19:50:31 UTC, Rubn wrote:
>> If the data is thread local, then it is already guaranteed to 
>> have no conflict with other threads. Hence it being "thread 
>> local", only the local thread can access the data. There's no 
>> need for a "shared" qualifier in this regard.
>
> In case of D the claim doesn't hang in a vacuum, but is 
> supported by the type system.

You don't use the type system with thread local data. Using 
shared, actually creates global data, not thread local data.

I'll ask this now since it seems you are talking mostly 
gibberish. Do you even know what thread local data is ?


More information about the Digitalmars-d mailing list