On 15.09.2014 11:31, Ola Fosheim Gr wrote:
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


This describes the scenario I meant in the ARC discussions.

Thanks for the link, I didn't know a solution exists. I'll have to study the "differential" approach to see if it works for our case and at what cost it comes...

Reply via email to