Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53432 - in sandbox/task: boost/task boost/task/detail libs/task/examples
From: oliver.kowalke_at_[hidden]
Date: 2009-05-30 04:55:25


Author: olli
Date: 2009-05-30 04:55:24 EDT (Sat, 30 May 2009)
New Revision: 53432
URL: http://svn.boost.org/trac/boost/changeset/53432

Log:
bugfix FreeBSd
Text files modified:
   sandbox/task/boost/task/detail/bind_processor.hpp | 2 +-
   sandbox/task/boost/task/static_pool.hpp | 6 +++---
   sandbox/task/libs/task/examples/bind_to_processors.cpp | 4 ++++
   3 files changed, 8 insertions(+), 4 deletions(-)

Modified: sandbox/task/boost/task/detail/bind_processor.hpp
==============================================================================
--- sandbox/task/boost/task/detail/bind_processor.hpp (original)
+++ sandbox/task/boost/task/detail/bind_processor.hpp 2009-05-30 04:55:24 EDT (Sat, 30 May 2009)
@@ -25,7 +25,7 @@
 # define BOOST_HAS_PROCESSOR_BINDINGS 1
 # include <boost/task/detail/bind_processor_solaris.hpp>
 # else
-# define BOOST_HAS_PROCESSOR_BINDINGS 0
+# undef BOOST_HAS_PROCESSOR_BINDINGS
 # endif
 
 #endif // BOOST_TASK_DETAIL_BIND_PROCESSOR_H

Modified: sandbox/task/boost/task/static_pool.hpp
==============================================================================
--- sandbox/task/boost/task/static_pool.hpp (original)
+++ sandbox/task/boost/task/static_pool.hpp 2009-05-30 04:55:24 EDT (Sat, 30 May 2009)
@@ -86,7 +86,7 @@
                                         this) ) );
         }
 
-#ifdef BOOST_HAS_PROCESSOR_BINDINGS
+# if defined(BOOST_HAS_PROCESSOR_BINDINGS)
         void worker_entry_( std::size_t n)
         {
                 this_thread::bind_to_processor( n);
@@ -110,7 +110,7 @@
                                         this,
                                         n) ) );
         }
-#endif
+# endif
 
         std::size_t active_() const
         { return active_worker_; }
@@ -174,7 +174,7 @@
                 lk.unlock();
         }
 
-#ifdef BOOST_HAS_PROCESSOR_BINDINGS
+# ifdef BOOST_HAS_PROCESSOR_BINDINGS
         explicit static_pool(
                 posix_time::time_duration const& asleep = posix_time::microseconds( 10),
                 scanns const& max_scns = scanns( 20) )

Modified: sandbox/task/libs/task/examples/bind_to_processors.cpp
==============================================================================
--- sandbox/task/libs/task/examples/bind_to_processors.cpp (original)
+++ sandbox/task/libs/task/examples/bind_to_processors.cpp 2009-05-30 04:55:24 EDT (Sat, 30 May 2009)
@@ -72,6 +72,7 @@
 
 int main( int argc, char *argv[])
 {
+# if defined(BOOST_HAS_PROCESSOR_BINDINGS)
         try
         {
                 pool_type pool;
@@ -109,5 +110,8 @@
         catch ( ... )
         { std::cerr << "unhandled" << std::endl; }
 
+# endif
+
         return EXIT_FAILURE;
 }
+


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