atomic_count and lightweight_mutex now report an #error on unknown threading configs.

[SVN r17303]
This commit is contained in:
Peter Dimov
2003-02-10 12:58:50 +00:00
parent 190893a1ce
commit 34f423f811
2 changed files with 4 additions and 14 deletions

View File

@ -104,19 +104,8 @@ typedef long atomic_count;
# include <boost/detail/atomic_count_pthreads.hpp>
#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

View File

@ -82,7 +82,8 @@
# define BOOST_LWM_USE_PTHREADS
# include <boost/detail/lwm_pthreads.hpp>
#else
# include <boost/detail/lwm_nop.hpp>
// Use #define BOOST_DISABLE_THREADS to avoid the error
# error Unrecognized threading platform
#endif
#endif // #ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED