]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Restore comment 17208/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 5 Jul 2024 00:13:32 +0000 (20:13 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 5 Jul 2024 00:15:47 +0000 (20:15 -0400)
source/base/parameter_acceptor.cc

index 7610532d8ee1b623703f8850f5c674c58990f458..bd3bbae13b1c4f299b8c9cec59cf33754764a979 100644 (file)
@@ -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);
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.