Finish C++ Multithreading - Passing params to function example