draft proposal for ref counting in D
Walter Bright
newshound2 at digitalmars.com
Wed Oct 9 19:31:31 PDT 2013
Michel Fortin wrote:
Le 30-juin-2013 à 22:26, Walter Bright a écrit :
> This is actually a problem right now with the GC, as destructors may be run
in another thread than they belong in. The situation you describe is not worse
or better than that, it's the same thing. The solution is to run the destructors
in the same thread the objects belong in.
Indeed. Maybe that could work. How ironic that we can't implement RC efficiently
because of the GC.
That said, it strongly favors having a base RC object implementation in
druntime, where it can be kept in sync with the GC.
More information about the Digitalmars-d
mailing list