threading for affine feature adaptor