Subj : Re: experimental smr-based 100% lock-free eventcount schema for windows... To : comp.programming.threads From : SenderX Date : Tue Feb 01 2005 05:20 pm Yeow! > if ( ! InterlockedDecrement( &xchg->refs ) ) > { > if ( InterlockedCompareExchangePointer > ( &_this->active_waitset, > 0, > xchg ) ) > { > dtor = 0; dtor = 1; > } > } > > /* release hazard */ > *hazard = 0; > > if ( dtor ) > { > ac_lfgc_collect( xchg ); ac_lfgc_collect( xchg, ac_waitset_dtor ); > } > } .