On Thursday, 10 October 2013 at 08:55:00 UTC, Robert Schadek wrote:
On 10/10/2013 03:45 AM, Walter Bright wrote:I would imagine the counter to be manipulated with atomic_add_and_fetchRainer Schuetze wrote:You have to put the lock around the pair of AddRef and Release, but if the compiler already splits this into two function calls, this cannotbe done in the implementation.operations, so no locks are required.
On shared objects, yes. Local objects need no atomics at all.