Added implementation of std::thread versions. REQUIRES C++11