Convert hsThread to a std::thread implementation