Thread library converted to C++ 11 threads.