update ThreadPoolAdaptor