one std::thread for queue