]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Deprecate the Threads::Mutex::acquire/release functions.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 27 Sep 2018 13:58:26 +0000 (07:58 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 27 Sep 2018 17:51:26 +0000 (11:51 -0600)
include/deal.II/base/thread_management.h

index 9d7bf1bf0a570a9061c8a10764ef0953da0edf03..ae839d539760d1818bac76f4c300009ecf957232 100644 (file)
@@ -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()
     {

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.