Subj : Re: full-blown experiential smr-based reference counted pointer impl... To : comp.programming.threads From : Joe Seigh Date : Thu Mar 31 2005 06:59 am On Thu, 31 Mar 2005 03:17:41 -0800, Chris Thomasson <_no_damn_spam_cristom@_no_damn_comcast.net_spam> wrote: > > > The smr atomic pointer has an expensive (store/load) before the reference > count can even be incremented. So, its a fairly costly when you load a > shared pointer into a local pointer. You would not want to use this for > everything. > You also need a release ( load/store, store/store) barrier before dropping the hazard pointer reference (setting it to zero). Yes, you wouldn't use SMR for everything but there are definitely niche uses for it so it doesn't hurt to have it around. -- Joe Seigh .