Use std::thread::get_id()