From 3834917938f2144b7a76c61b12754eaef6266667 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 4 Jul 2024 20:13:32 -0400 Subject: [PATCH] Restore comment --- source/base/parameter_acceptor.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/base/parameter_acceptor.cc b/source/base/parameter_acceptor.cc index 7610532d8e..bd3bbae13b 100644 --- a/source/base/parameter_acceptor.cc +++ b/source/base/parameter_acceptor.cc @@ -59,6 +59,9 @@ ParameterAcceptor::ParameterAcceptor(const std::string &name) ParameterAcceptor::~ParameterAcceptor() { std::lock_guard l(class_list_mutex); + // Notice that it is possible that the class is no longer in the static list. + // This happens when the clear() method has been called. erase() does the + // righy thing anyway by only removing this class if it's still in the list. class_list.erase(this); } -- 2.39.5