Switched from pthread to std::thread
a