optimized thread_adaptor