A simple threadpool in C++