From c197e75473a35895ad1f39a95551a40914dab5d2 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 27 Sep 2018 07:58:26 -0600 Subject: [PATCH] Deprecate the Threads::Mutex::acquire/release functions. --- include/deal.II/base/thread_management.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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() { -- 2.39.5