]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Better describe a mutex. 16222/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 31 Oct 2023 14:47:49 +0000 (08:47 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 31 Oct 2023 14:47:49 +0000 (08:47 -0600)
include/deal.II/base/subscriptor.h

index 1930ab26228a7648e87e34a02d5d468881acf25d..776afcfa1e84991703ec18fbe75256846ad3ed65 100644 (file)
@@ -265,8 +265,9 @@ private:
   check_no_subscribers() const noexcept;
 
   /**
-   * A mutex used to ensure data consistency when printing out the list
-   * of subscribers.
+   * A mutex used to ensure data consistency when accessing the `mutable`
+   * members of this class. This lock is used in the subscribe() and
+   * unsubscribe() functions, as well as in `list_subscribers()`.
    */
   static std::mutex mutex;
 };

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.