Thread safe reference counting

Kagamin spam at here.lot
Wed Feb 7 16:15:13 UTC 2018


On Wednesday, 7 February 2018 at 14:09:51 UTC, Atila Neves wrote:
> auto ptr = new shared RefCounted!(...);

If you rely only on postblit, then you can't concurrently read 
and write to refcounted shared storage without additional mutex 
lock, so it should be at least a non-copyable container (similar 
to what rust does).


More information about the Digitalmars-d mailing list