3 ms·
I don't think atomic refcounting requires memory barriers. You only need to delete the object when the refcount drops to zero. There is no other memory that n
by haberman 17y ago
I don't think atomic refcounting requires memory barriers. You only need to delete the object when the refcount drops to zero. There is no other memory that needs to be viewed consistently with respect to the refcount.