]> https://gitweb.dealii.org/ - dealii.git/commitdiff
new define DEAL_VOLATILE
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 15 Mar 2005 21:00:44 +0000 (21:00 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 15 Mar 2005 21:00:44 +0000 (21:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@10162 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/config.h.in
deal.II/configure.in

index 2ae411434bc370f113e81ddfee0b31f72448ec14..f2dd8d4d29073333e2fa91f95e41b8ea2c00e470 100644 (file)
 #undef __PRETTY_FUNCTION__
 
 
+/**
+ * Depending on the use of threads, we will have to make some variables
+ * volatile. We do this here in a very old-fashioned C-style, but still
+ * convenient way.
+ */
+#ifdef DEAL_II_USE_MT
+#  define DEAL_VOLATILE volatile
+#else
+#  define DEAL_VOLATILE
+#endif
+
+
 /**
  * Have a namespace into which we declare some numeric constants, such
  * as pi. Unfortunately, these are not always available, on all systems
index 0eed55bc41be3da6fa8beec72448215cc9ec7829..6c7a4259e2e5124c7e4b1e3293f7539f43972875 100644 (file)
@@ -505,6 +505,18 @@ AH_TOP(
 
 AH_BOTTOM(
 [
+/**
+ * Depending on the use of threads, we will have to make some variables
+ * volatile. We do this here in a very old-fashioned C-style, but still
+ * convenient way.
+ */
+#ifdef DEAL_II_USE_MT
+#  define DEAL_VOLATILE volatile
+#else
+#  define DEAL_VOLATILE
+#endif
+
+
 /**
  * Have a namespace into which we declare some numeric constants, such
  * as pi. Unfortunately, these are not always available, on all systems

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.