Escaping the Tyranny of the GC: std.rcstring, first blood

Ola Fosheim Gr via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 15 11:31:15 PDT 2014


On Monday, 15 September 2014 at 18:08:31 UTC, po wrote:
>
>>> I'm not sure about that discussion, but there's good evidence 
>>> from C++ that refcounting with atomics works. What was the 
>>> smoking gun?
>>
>> http://www.gotw.ca/gotw/045.htm
>
>  I don't see how that link answers Andrei's question? He just 
> compares different methods of implementing COW.

As I understand the issue it works if you make sure to transfer 
ownership explicitly before the other thread gains access?

Maybe this is more clear:

http://www.1024cores.net/home/lock-free-algorithms/object-life-time-management/differential-reference-counting


More information about the Digitalmars-d mailing list