Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83552 - in trunk: boost/thread libs/thread/example
From: vicente.botet_at_[hidden]
Date: 2013-03-24 18:05:52


Author: viboes
Date: 2013-03-24 18:05:50 EDT (Sun, 24 Mar 2013)
New Revision: 83552
URL: http://svn.boost.org/trac/boost/changeset/83552

Log:
Thread: limit dependency on boost/thread/thread.hpp.
Text files modified:
   trunk/boost/thread/scoped_thread.hpp | 2 +-
   trunk/boost/thread/thread_functors.hpp | 2 +-
   trunk/libs/thread/example/condition.cpp | 2 +-
   trunk/libs/thread/example/monitor.cpp | 2 +-
   trunk/libs/thread/example/perf_shared_mutex.cpp | 2 +-
   trunk/libs/thread/example/shared_monitor.cpp | 2 +-
   trunk/libs/thread/example/shared_mutex.cpp | 2 +-
   trunk/libs/thread/example/starvephil.cpp | 2 +-
   trunk/libs/thread/example/tennis.cpp | 2 +-
   trunk/libs/thread/example/thread.cpp | 2 +-
   trunk/libs/thread/example/thread_guard.cpp | 2 +-
   trunk/libs/thread/example/xtime.cpp | 2 +-
   12 files changed, 12 insertions(+), 12 deletions(-)

Modified: trunk/boost/thread/scoped_thread.hpp
==============================================================================
--- trunk/boost/thread/scoped_thread.hpp (original)
+++ trunk/boost/thread/scoped_thread.hpp 2013-03-24 18:05:50 EDT (Sun, 24 Mar 2013)
@@ -13,7 +13,7 @@
 #include <boost/thread/detail/delete.hpp>
 #include <boost/thread/detail/move.hpp>
 #include <boost/thread/thread_functors.hpp>
-#include <boost/thread/thread.hpp>
+#include <boost/thread/thread_only.hpp>
 
 #include <boost/config/abi_prefix.hpp>
 

Modified: trunk/boost/thread/thread_functors.hpp
==============================================================================
--- trunk/boost/thread/thread_functors.hpp (original)
+++ trunk/boost/thread/thread_functors.hpp 2013-03-24 18:05:50 EDT (Sun, 24 Mar 2013)
@@ -12,7 +12,7 @@
 #include <boost/thread/detail/config.hpp>
 #include <boost/thread/detail/delete.hpp>
 #include <boost/thread/detail/move.hpp>
-#include <boost/thread/thread.hpp>
+#include <boost/thread/thread_only.hpp>
 
 #include <boost/config/abi_prefix.hpp>
 

Modified: trunk/libs/thread/example/condition.cpp
==============================================================================
--- trunk/libs/thread/example/condition.cpp (original)
+++ trunk/libs/thread/example/condition.cpp 2013-03-24 18:05:50 EDT (Sun, 24 Mar 2013)
@@ -8,7 +8,7 @@
 #include <vector>
 #include <boost/utility.hpp>
 #include <boost/thread/condition_variable.hpp>
-#include <boost/thread/thread.hpp>
+#include <boost/thread/thread_only.hpp>
 #include "../test/remove_error_code_unused_warning.hpp"
 
 class bounded_buffer : private boost::noncopyable

Modified: trunk/libs/thread/example/monitor.cpp
==============================================================================
--- trunk/libs/thread/example/monitor.cpp (original)
+++ trunk/libs/thread/example/monitor.cpp 2013-03-24 18:05:50 EDT (Sun, 24 Mar 2013)
@@ -9,7 +9,7 @@
 #include <boost/thread/condition_variable.hpp>
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/recursive_mutex.hpp>
-#include <boost/thread/thread.hpp>
+#include <boost/thread/thread_only.hpp>
 
 namespace {
 const int ITERS = 100;

Modified: trunk/libs/thread/example/perf_shared_mutex.cpp
==============================================================================
--- trunk/libs/thread/example/perf_shared_mutex.cpp (original)
+++ trunk/libs/thread/example/perf_shared_mutex.cpp 2013-03-24 18:05:50 EDT (Sun, 24 Mar 2013)
@@ -12,7 +12,7 @@
 
 #include <iostream>
 #include <boost/thread/lock_types.hpp>
-#include <boost/thread/thread.hpp>
+#include <boost/thread/thread_only.hpp>
 #include <boost/chrono/chrono_io.hpp>
 
 #include <boost/thread/shared_mutex.hpp>

Modified: trunk/libs/thread/example/shared_monitor.cpp
==============================================================================
--- trunk/libs/thread/example/shared_monitor.cpp (original)
+++ trunk/libs/thread/example/shared_monitor.cpp 2013-03-24 18:05:50 EDT (Sun, 24 Mar 2013)
@@ -7,7 +7,7 @@
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/shared_mutex.hpp>
 #include <boost/thread/lock_algorithms.hpp>
-#include <boost/thread/thread.hpp>
+#include <boost/thread/thread_only.hpp>
 #if defined BOOST_THREAD_DONT_USE_CHRONO
 #include <boost/chrono/chrono_io.hpp>
 #endif

Modified: trunk/libs/thread/example/shared_mutex.cpp
==============================================================================
--- trunk/libs/thread/example/shared_mutex.cpp (original)
+++ trunk/libs/thread/example/shared_mutex.cpp 2013-03-24 18:05:50 EDT (Sun, 24 Mar 2013)
@@ -11,7 +11,7 @@
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/shared_mutex.hpp>
 #include <boost/thread/lock_algorithms.hpp>
-#include <boost/thread/thread.hpp>
+#include <boost/thread/thread_only.hpp>
 #include <vector>
 
 #if defined BOOST_THREAD_USES_CHRONO

Modified: trunk/libs/thread/example/starvephil.cpp
==============================================================================
--- trunk/libs/thread/example/starvephil.cpp (original)
+++ trunk/libs/thread/example/starvephil.cpp 2013-03-24 18:05:50 EDT (Sun, 24 Mar 2013)
@@ -8,7 +8,7 @@
 
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/condition.hpp>
-#include <boost/thread/thread.hpp>
+#include <boost/thread/thread_only.hpp>
 #include <boost/thread/xtime.hpp>
 #include <iostream>
 #include <time.h>

Modified: trunk/libs/thread/example/tennis.cpp
==============================================================================
--- trunk/libs/thread/example/tennis.cpp (original)
+++ trunk/libs/thread/example/tennis.cpp 2013-03-24 18:05:50 EDT (Sun, 24 Mar 2013)
@@ -6,7 +6,7 @@
 
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/condition.hpp>
-#include <boost/thread/thread.hpp>
+#include <boost/thread/thread_only.hpp>
 #include <boost/thread/xtime.hpp>
 #include <iostream>
 

Modified: trunk/libs/thread/example/thread.cpp
==============================================================================
--- trunk/libs/thread/example/thread.cpp (original)
+++ trunk/libs/thread/example/thread.cpp 2013-03-24 18:05:50 EDT (Sun, 24 Mar 2013)
@@ -6,7 +6,7 @@
 
 #define BOOST_THREAD_VERSION 2
 
-#include <boost/thread/thread.hpp>
+#include <boost/thread/thread_only.hpp>
 #include <boost/thread/xtime.hpp>
 #include <iostream>
 

Modified: trunk/libs/thread/example/thread_guard.cpp
==============================================================================
--- trunk/libs/thread/example/thread_guard.cpp (original)
+++ trunk/libs/thread/example/thread_guard.cpp 2013-03-24 18:05:50 EDT (Sun, 24 Mar 2013)
@@ -7,7 +7,7 @@
 
 #include <iostream>
 #include <string>
-#include <boost/thread/thread.hpp>
+#include <boost/thread/thread_only.hpp>
 #include <boost/thread/thread_guard.hpp>
 
 void do_something(int& i)

Modified: trunk/libs/thread/example/xtime.cpp
==============================================================================
--- trunk/libs/thread/example/xtime.cpp (original)
+++ trunk/libs/thread/example/xtime.cpp 2013-03-24 18:05:50 EDT (Sun, 24 Mar 2013)
@@ -6,7 +6,7 @@
 
 #define BOOST_THREAD_VERSION 2
 
-#include <boost/thread/thread.hpp>
+#include <boost/thread/thread_only.hpp>
 #include <boost/thread/xtime.hpp>
 
 int main()


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