draft proposal for ref counting in D
Robert Schadek
realburner at gmx.de
Thu Oct 10 01:54:44 PDT 2013
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.
More information about the Digitalmars-d
mailing list