Skip to content

Commit

Permalink
Restore comment
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Jul 5, 2024
1 parent 2857213 commit 3834917
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/base/parameter_acceptor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ ParameterAcceptor::ParameterAcceptor(const std::string &name)
ParameterAcceptor::~ParameterAcceptor()
{
std::lock_guard<std::mutex> 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);
}

Expand Down

0 comments on commit 3834917

Please sign in to comment.