C++ ThreadPool try2