From: Wolfgang Bangerth Date: Tue, 31 Oct 2023 14:47:49 +0000 (-0600) Subject: Better describe a mutex. X-Git-Tag: relicensing~329^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16222%2Fhead;p=dealii.git Better describe a mutex. --- diff --git a/include/deal.II/base/subscriptor.h b/include/deal.II/base/subscriptor.h index 1930ab2622..776afcfa1e 100644 --- a/include/deal.II/base/subscriptor.h +++ b/include/deal.II/base/subscriptor.h @@ -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; };