]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Hide implementation from doxygen to avoid errors. 17374/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 25 Jul 2024 23:53:48 +0000 (17:53 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 19 Aug 2024 17:22:47 +0000 (11:22 -0600)
include/deal.II/base/lazy.h
include/deal.II/base/task_result.h

index 40d62f8553dbde7966a4d61f1f9ec34c85a6938e..37a066b743f75b94f4ae031dcde9bf1e828787ca 100644 (file)
@@ -278,6 +278,7 @@ private:
 
 // ------------------------------- inline functions --------------------------
 
+#ifndef DOXYGEN
 
 template <typename T>
 DEAL_II_CXX20_REQUIRES((std::is_move_constructible_v<T> &&
@@ -399,9 +400,9 @@ inline DEAL_II_ALWAYS_INLINE
   // https://en.cppreference.com/w/cpp/atomic/memory_order#Release-Acquire_ordering
   //
   if (!object_is_initialized.load(std::memory_order_acquire))
-#ifdef DEAL_II_HAVE_CXX20
+#  ifdef DEAL_II_HAVE_CXX20
     [[unlikely]]
-#endif
+#  endif
     {
       // Check again. If this thread won the race to the lock then we
       // would like to initialize the object. Otherwise another thread has
@@ -506,6 +507,7 @@ std::size_t Lazy<T>::memory_consumption() const
          sizeof(*this) - sizeof(task_result);
 }
 
+#endif
 
 DEAL_II_NAMESPACE_CLOSE
 #endif
index b0a1ecb3570365a1d21deeb1f45fa48ca8d493c2..9252d27fdaff9d9f6e6184a74c8060b39dd16e3a 100644 (file)
@@ -394,6 +394,7 @@ namespace Threads
 
   // ------------------------------- inline functions --------------------------
 
+#ifndef DOXYGEN
 
   template <typename T>
   inline TaskResult<T>::TaskResult(TaskResult<T> &&other) noexcept
@@ -615,8 +616,12 @@ namespace Threads
       join();
     return task_result.value();
   }
+
+#endif
+
 } // namespace Threads
 
+
 /**
  * @}
  */

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.