Thread safe reference counting

Kagamin spam at here.lot
Wed Feb 7 07:58:42 UTC 2018


On Tuesday, 6 February 2018 at 10:01:28 UTC, Nathan S. wrote:
> You might also want to look at Atila Neves's automem package. 
> It uses atomic increment/decrement when the type being 
> reference-counted is `shared`.
>
> https://dlang.org/blog/2017/04/28/automem-hands-free-raii-for-d/

That RefCounted only counts on stack, it can't be put in shared 
storage.


More information about the Digitalmars-d mailing list