On Thursday, 10 October 2013 at 08:55:00 UTC, Robert Schadek
wrote:
On 10/10/2013 03:45 AM, Walter Bright wrote:
Rainer 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 cannot
be done in the implementation.
I would imagine the counter to be manipulated with atomic_add_and_fetch
operations, so no locks are required.

On shared objects, yes. Local objects need no atomics at all.

Reply via email to