Subj : Re: C++ desired features To : comp.lang.c++.moderated,comp.programming.threads From : Llewelly Date : Wed Mar 02 2005 05:55 am "Sergey P. Derevyago" writes: > Hans Boehm wrote: > > It may be that we actually agree here. I didn't quite understand the > > last sentence above. > > > IMHO the points are: > > H.B.: In a typical MT application there exist a lot of (application-)shared > data which is modified from the several threads simultaneously. Typical > destructors almost always modify the shared data so the calls to these > destructors have to be somehow serialized. > > S.D.: In a well-designed MT application the threads work almost independently, > the (application-)shared data is pretty rare and concentrated in a few > well-know places. So a GC can call the finalizers at any time, no external > synchronization required. H.B. refers to destructors. You refer to finalizers. Are you assuming finalizers and destructors are the same thing? [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ] .