242 Subj : Re: A question about atomic_ptr To : comp.programming.threads From : Joe Seigh Date : Thu Apr 14 2005 09:35 pm On Thu, 14 Apr 2005 16:53:13 +0300, Peter Dimov wrote: > > I think that you have a bug in your PPC implementation, but I may be missing > something. In inc_ref, you reload the pointer and check for change, however, > the pointer is a local function argument (int* refcnt) and will never > change. > I put a fix changing int * refcnt to int ** refcnt. It's out as atomic_ptr_0-0-1-ppc32.tar.gz. -- Joe Seigh . 0