]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add include files for mutices and condition variables.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 18 Jan 2009 23:59:51 +0000 (23:59 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 18 Jan 2009 23:59:51 +0000 (23:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@18229 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/std_cxx0x/condition_variable.h [new file with mode: 0644]
deal.II/base/include/base/std_cxx0x/mutex.h [new file with mode: 0644]

diff --git a/deal.II/base/include/base/std_cxx0x/condition_variable.h b/deal.II/base/include/base/std_cxx0x/condition_variable.h
new file mode 100644 (file)
index 0000000..eba68dc
--- /dev/null
@@ -0,0 +1,38 @@
+//---------------------------------------------------------------------------
+//    $Id$
+//    Version: $Name$
+//
+//    Copyright (C) 2009 by the deal.II authors
+//
+//    This file is subject to QPL and may not be  distributed
+//    without copyright and license information. Please refer
+//    to the file deal.II/doc/license.html for the  text  and
+//    further information on this license.
+//
+//---------------------------------------------------------------------------
+#ifndef __deal2__std_cxx0x_condition_variable_h
+#define __deal2__std_cxx0x_condition_variable_h
+
+
+#include <base/config.h>
+
+#ifdef DEAL_II_CAN_USE_CXX0X
+
+#  include <condition_variable>
+
+#else
+
+#  include <boost/thread/condition_variable.hpp>
+
+DEAL_II_NAMESPACE_OPEN
+namespace std_cxx0x
+{
+  using boost::condition_variable;
+  using boost::unique_lock;
+  using boost::adopt_lock;
+}
+DEAL_II_NAMESPACE_CLOSE
+
+#endif
+
+#endif
diff --git a/deal.II/base/include/base/std_cxx0x/mutex.h b/deal.II/base/include/base/std_cxx0x/mutex.h
new file mode 100644 (file)
index 0000000..6063500
--- /dev/null
@@ -0,0 +1,36 @@
+//---------------------------------------------------------------------------
+//    $Id$
+//    Version: $Name$
+//
+//    Copyright (C) 2009 by the deal.II authors
+//
+//    This file is subject to QPL and may not be  distributed
+//    without copyright and license information. Please refer
+//    to the file deal.II/doc/license.html for the  text  and
+//    further information on this license.
+//
+//---------------------------------------------------------------------------
+#ifndef __deal2__std_cxx0x_mutex_h
+#define __deal2__std_cxx0x_mutex_h
+
+
+#include <base/config.h>
+
+#ifdef DEAL_II_CAN_USE_CXX0X
+
+#  include <mutex>
+
+#else
+
+#  include <boost/thread/mutex.hpp>
+
+DEAL_II_NAMESPACE_OPEN
+namespace std_cxx0x
+{
+  using boost::mutex;
+}
+DEAL_II_NAMESPACE_CLOSE
+
+#endif
+
+#endif

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.