Use std::thread for the threadengine