]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Deprecate the PosixThreadBarrier class.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 27 Sep 2018 22:22:16 +0000 (16:22 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 27 Sep 2018 22:22:16 +0000 (16:22 -0600)
include/deal.II/base/thread_management.h

index 0b5aed9982d2adc9a2a15b7047cd9bf6b0f48466..7ed6874880cd4fc66ff541077ccd667eaf92faea 100644 (file)
@@ -418,9 +418,12 @@ namespace Threads
    * at all). The rest of the threading functionality will be available in its
    * full extent, though, even if POSIX barriers are not available.
    *
+   * @deprecated This class is deprecated. It is easily possible to implement
+   *   its functionality with the facilities provided by C++11.
+   *
    * @author Wolfgang Bangerth, 2002
    */
-  class PosixThreadBarrier
+  class DEAL_II_DEPRECATED PosixThreadBarrier
   {
   public:
     /**
@@ -460,8 +463,11 @@ namespace Threads
   /**
    * If using POSIX functions, then alias the POSIX wrapper classes to the
    * names we use throughout the library.
+   *
+   * @deprecated Like the PosixThreadBarrier class, this `using` declaration
+   *   is deprecated.
    */
-  using Barrier = PosixThreadBarrier;
+  using Barrier DEAL_II_DEPRECATED = PosixThreadBarrier;
 
 #  else
   /**

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.