Subj : Re: distributed lock-free slab-allocator pseudo-code... To : comp.programming.threads From : Chris Thomasson Date : Mon Oct 03 2005 12:47 am Yikes! > if ( XADD( &_this->refs, -count ) == 1 ) ^^^^^^^^^^^^^^^^ Needs to be: > if ( XADD( &_this->refs, -count ) == count ) This is because XADD returns the old value! Humm... I think I should create some compliable code. This particular allocator design seems very promising. :) .