Thread Pool Manager in C++