std::raii_thread update