Multithreaded task pooling implementation in C++11. University assignment.