From: bangerth Date: Sun, 18 Jan 2009 23:59:51 +0000 (+0000) Subject: Add include files for mutices and condition variables. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58f849934ce0bd87c92222b2d6ea95b6a112e234;p=dealii-svn.git Add include files for mutices and condition variables. git-svn-id: https://svn.dealii.org/trunk@18229 0785d39b-7218-0410-832d-ea1e28bc413d --- 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 index 0000000000..eba68dcc71 --- /dev/null +++ b/deal.II/base/include/base/std_cxx0x/condition_variable.h @@ -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 + +#ifdef DEAL_II_CAN_USE_CXX0X + +# include + +#else + +# include + +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 index 0000000000..6063500155 --- /dev/null +++ b/deal.II/base/include/base/std_cxx0x/mutex.h @@ -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 + +#ifdef DEAL_II_CAN_USE_CXX0X + +# include + +#else + +# include + +DEAL_II_NAMESPACE_OPEN +namespace std_cxx0x +{ + using boost::mutex; +} +DEAL_II_NAMESPACE_CLOSE + +#endif + +#endif