From: Wolfgang Bangerth Date: Thu, 27 Sep 2018 13:58:26 +0000 (-0600) Subject: Deprecate the Threads::Mutex::acquire/release functions. X-Git-Tag: v9.1.0-rc1~679^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c197e75473a35895ad1f39a95551a40914dab5d2;p=dealii.git Deprecate the Threads::Mutex::acquire/release functions. --- diff --git a/include/deal.II/base/thread_management.h b/include/deal.II/base/thread_management.h index 9d7bf1bf0a..ae839d5397 100644 --- a/include/deal.II/base/thread_management.h +++ b/include/deal.II/base/thread_management.h @@ -309,7 +309,11 @@ namespace Threads /** * Acquire a mutex. + * + * @deprecated This function is deprecated. Use the + * std::mutex::lock() function of the base class instead. */ + DEAL_II_DEPRECATED inline void acquire() { @@ -318,7 +322,11 @@ namespace Threads /** * Release the mutex again. + * + * @deprecated This function is deprecated. Use the + * std::mutex::unlock() function of the base class instead. */ + DEAL_II_DEPRECATED inline void release() {