forked from boostorg/smart_ptr
atomic_count and lightweight_mutex now report an #error on unknown threading configs.
[SVN r17303]
This commit is contained in:
@ -104,19 +104,8 @@ typedef long atomic_count;
|
|||||||
# include <boost/detail/atomic_count_pthreads.hpp>
|
# include <boost/detail/atomic_count_pthreads.hpp>
|
||||||
#else
|
#else
|
||||||
|
|
||||||
// #warning Unrecognized platform, detail::atomic_count will not be thread safe
|
// Use #define BOOST_DISABLE_THREADS to avoid the error
|
||||||
|
#error Unrecognized threading platform
|
||||||
namespace boost
|
|
||||||
{
|
|
||||||
|
|
||||||
namespace detail
|
|
||||||
{
|
|
||||||
|
|
||||||
typedef long atomic_count;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -82,7 +82,8 @@
|
|||||||
# define BOOST_LWM_USE_PTHREADS
|
# define BOOST_LWM_USE_PTHREADS
|
||||||
# include <boost/detail/lwm_pthreads.hpp>
|
# include <boost/detail/lwm_pthreads.hpp>
|
||||||
#else
|
#else
|
||||||
# include <boost/detail/lwm_nop.hpp>
|
// Use #define BOOST_DISABLE_THREADS to avoid the error
|
||||||
|
# error Unrecognized threading platform
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // #ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
|
#endif // #ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
|
||||||
|
Reference in New Issue
Block a user