Thread safe reference counting

Nathan S. no.public.email at example.com
Tue Feb 6 10:01:28 UTC 2018


On Saturday, 3 February 2018 at 14:41:06 UTC, Kagamin wrote:
> That RCSharedAllocator PR made me think, so this is my take on 
> how to keep reference counted allocator in shared storage: 
> https://run.dlang.io/is/r1z1dd

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/


More information about the Digitalmars-d mailing list