|
Boost-Commit : |
From: hartmut.kaiser_at_[hidden]
Date: 2008-01-31 17:33:43
Author: hkaiser
Date: 2008-01-31 17:33:43 EST (Thu, 31 Jan 2008)
New Revision: 43041
URL: http://svn.boost.org/trac/boost/changeset/43041
Log:
Wave: Added additional configuration possibility to allow control threading support.
Text files modified:
trunk/boost/wave/wave_config.hpp | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
Modified: trunk/boost/wave/wave_config.hpp
==============================================================================
--- trunk/boost/wave/wave_config.hpp (original)
+++ trunk/boost/wave/wave_config.hpp 2008-01-31 17:33:43 EST (Thu, 31 Jan 2008)
@@ -388,9 +388,22 @@
}}
///////////////////////////////////////////////////////////////////////////////
-// configure Boost.Spirit thread support, Boost.Pool is configured
-// automatically
+// Configure Wave thread support, Boost.Spirit and Boost.Pool are configured
+// based on these settings automatically
+//
+// If BOOST_WAVE_SUPPORT_THREADING is not defined, Wave will use the global
+// Boost build settings (BOOST_HAS_THREADS), if it is defined its value
+// defines, whether threading will be enabled or not (should be set to '0'
+// or '1').
+#if !defined(BOOST_WAVE_SUPPORT_THREADING)
#if defined(BOOST_HAS_THREADS)
+#define BOOST_WAVE_SUPPORT_THREADING 1
+#else
+#define BOOST_WAVE_SUPPORT_THREADING 0
+#endif
+#endif
+
+#if BOOST_WAVE_SUPPORT_THREADING != 0
#define BOOST_SPIRIT_THREADSAFE 1
#define PHOENIX_THREADSAFE 1
#else
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