Thread Pool Pattern implementation, C++ POSIX Threads