What classification should shared objects in qeued thread pools have?
mingwu at gmail.com
Thu Oct 1 00:12:51 UTC 2020
On Thursday, 1 October 2020 at 00:00:06 UTC, mw wrote:
> On Wednesday, 30 September 2020 at 20:13:47 UTC, IGotD- wrote:
> I think declaring the container and item as `shared` is the D's
> encouraged way of sharing data among different threads.
> then just cast the `shared` away: cast()data.
> I think using `shared` is the D's encouraged way.
> If there is a better way do this in D, I'd want to know it too.
BTW, this is what I learnt from my previous thread:
More information about the Digitalmars-d-learn