modified boost_asio_worker_thread