a simple thread pool write in C++