From 34f423f811b45aa912bec6d4aaa6100ac6ea0cf2 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 10 Feb 2003 12:58:50 +0000 Subject: [PATCH] atomic_count and lightweight_mutex now report an #error on unknown threading configs. [SVN r17303] --- include/boost/detail/atomic_count.hpp | 15 ++------------- include/boost/detail/lightweight_mutex.hpp | 3 ++- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/include/boost/detail/atomic_count.hpp b/include/boost/detail/atomic_count.hpp index b34dc85..5321232 100644 --- a/include/boost/detail/atomic_count.hpp +++ b/include/boost/detail/atomic_count.hpp @@ -104,19 +104,8 @@ typedef long atomic_count; # include #else -// #warning Unrecognized platform, detail::atomic_count will not be thread safe - -namespace boost -{ - -namespace detail -{ - -typedef long atomic_count; - -} - -} +// Use #define BOOST_DISABLE_THREADS to avoid the error +#error Unrecognized threading platform #endif diff --git a/include/boost/detail/lightweight_mutex.hpp b/include/boost/detail/lightweight_mutex.hpp index da9e575..1310da3 100644 --- a/include/boost/detail/lightweight_mutex.hpp +++ b/include/boost/detail/lightweight_mutex.hpp @@ -82,7 +82,8 @@ # define BOOST_LWM_USE_PTHREADS # include #else -# include +// Use #define BOOST_DISABLE_THREADS to avoid the error +# error Unrecognized threading platform #endif #endif // #ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED