std::thread & std::timer update