Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76037 - trunk/boost/thread/detail
From: vicente.botet_at_[hidden]
Date: 2011-12-18 08:37:38


Author: viboes
Date: 2011-12-18 08:37:37 EST (Sun, 18 Dec 2011)
New Revision: 76037
URL: http://svn.boost.org/trac/boost/changeset/76037

Log:
Thread: Added BOOST_THREAD_VERSION so that we can add backward incompatible features
Text files modified:
   trunk/boost/thread/detail/config.hpp | 9 +++++++++
   1 files changed, 9 insertions(+), 0 deletions(-)

Modified: trunk/boost/thread/detail/config.hpp
==============================================================================
--- trunk/boost/thread/detail/config.hpp (original)
+++ trunk/boost/thread/detail/config.hpp 2011-12-18 08:37:37 EST (Sun, 18 Dec 2011)
@@ -10,6 +10,15 @@
 #include <boost/config.hpp>
 #include <boost/detail/workaround.hpp>
 
+
+#if !defined BOOST_THREAD_VERSION
+#define BOOST_THREAD_VERSION 1
+#else
+#if BOOST_THREAD_VERSION!=1 && BOOST_THREAD_VERSION!=2
+#error "BOOST_THREAD_VERSION must be 1 or 2"
+#endif
+#endif
+
 #if BOOST_WORKAROUND(__BORLANDC__, < 0x600)
 # pragma warn -8008 // Condition always true/false
 # pragma warn -8080 // Identifier declared but never used


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk