Subj : Re: sketch for a simple smr based reference count api... To : comp.programming.threads From : Chris Thomasson Date : Fri Mar 25 2005 03:26 am Yikes! > /* releases the reference count */ > void ref_node_release > ( ref_node_t *_this ) > { > if ( _this && > atomic_dec_release( &_this->refs ) == 1 ) has to be if ( _this && ! atomic_dec_release( &_this->refs ) ) > { _this->fp_dtor( _this->s ); > > /* defer the free via. SMR */ > smr_collect( ref_node_smr_dtor, _this ); > } > } Sorry! :( .