Subj : Re: Lock Free Programming with Boost::shared_ptr instead of Hazard Pointers To : comp.programming.threads From : Joe Seigh Date : Mon Mar 21 2005 08:47 am On Mon, 21 Mar 2005 14:20:17 +0100, Alexander Terekhov wrote: > > Joe Seigh wrote: > [...] >> > http://groups.google.de/groups?selm=3F1F26CC.4125AE8B%40web.de >> > >> What was the overhead that they think isn't there now? > > "Overhead-free" means that apart from destruction of last "strong" > instance (which triggers destruction of managed object), existence of > weak_ptr feature doesn't make operations on "strong" pointer instances > more expensive or contentious then conventional refcounting pointers > (using atomic lockless operations) without weak_ptr feature (space for > extra count aside for a moment). > What, they didn't know you could do combine arithmetic operations on adjacent counts with a single atomic operation? You have an easy audience there. :) -- Joe Seigh .