Acess variable that was set by thread
frame
frame86 at live.com
Mon Aug 8 14:00:01 UTC 2022
On Monday, 8 August 2022 at 10:17:57 UTC, ag0aep6g wrote:
> By the way, is there some resource that recommends `__gshared`
> over `shared`? It seems that many newbies reach for `__gshared`
> first for some reason.
Would be also good if the specs would tell more about those
"guards":
> Unlike the shared attribute, __gshared provides no safe-guards
> against data races or other multi-threaded synchronization
> issues.
The only thing I see is that the compiler bails about type
incompatibilities but how does it help in case of
synchronization/locking issues?
More information about the Digitalmars-d-learn
mailing list