Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77668 - in trunk/libs/thread/test/sync/mutual_exclusion/locks: unique_lock/cons upgrade_lock/cons
From: vicente.botet_at_[hidden]
Date: 2012-03-31 11:38:57


Author: viboes
Date: 2012-03-31 11:38:56 EDT (Sat, 31 Mar 2012)
New Revision: 77668
URL: http://svn.boost.org/trac/boost/changeset/77668

Log:
Thread: Make use of the generic shared implementation for the missing features in windows.
Text files modified:
   trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/duration_pass.cpp | 2 ++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_upgrade_lock_for_pass.cpp | 2 ++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_upgrade_lock_try_pass.cpp | 1 +
   trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_upgrade_lock_until_pass.cpp | 1 +
   trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/time_point_pass.cpp | 2 ++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/duration_pass.cpp | 2 ++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/time_point_pass.cpp | 2 ++
   7 files changed, 12 insertions(+), 0 deletions(-)

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/duration_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/duration_pass.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/duration_pass.cpp 2012-03-31 11:38:56 EDT (Sat, 31 Mar 2012)
@@ -19,6 +19,8 @@
 // template <class Rep, class Period>
 // unique_lock(mutex_type& m, const chrono::duration<Rep, Period>& rel_time);
 
+#define BOOST_THREAD_SHARED_MUTEX_GENERIC
+
 #include <boost/thread/locks.hpp>
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/thread.hpp>

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_upgrade_lock_for_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_upgrade_lock_for_pass.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_upgrade_lock_for_pass.cpp 2012-03-31 11:38:56 EDT (Sat, 31 Mar 2012)
@@ -20,6 +20,8 @@
 // unique_lock(shared_lock<mutex_type>&&,
 // const chrono::duration<Rep, Period>&);
 
+#define BOOST_THREAD_SHARED_MUTEX_GENERIC
+
 #include <boost/thread/locks.hpp>
 #include <boost/thread/shared_mutex.hpp>
 #include <boost/detail/lightweight_test.hpp>

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_upgrade_lock_try_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_upgrade_lock_try_pass.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_upgrade_lock_try_pass.cpp 2012-03-31 11:38:56 EDT (Sat, 31 Mar 2012)
@@ -18,6 +18,7 @@
 
 // unique_lock(upgrade_lock&& u, try_to_lock);
 
+#define BOOST_THREAD_SHARED_MUTEX_GENERIC
 
 #include <boost/thread/locks.hpp>
 #include <boost/thread/shared_mutex.hpp>

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_upgrade_lock_until_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_upgrade_lock_until_pass.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_upgrade_lock_until_pass.cpp 2012-03-31 11:38:56 EDT (Sat, 31 Mar 2012)
@@ -20,6 +20,7 @@
 // unique_lock(shared_lock<mutex_type>&&,
 // const chrono::time_point<Clock, Duration>&);
 
+#define BOOST_THREAD_SHARED_MUTEX_GENERIC
 
 #include <boost/thread/locks.hpp>
 #include <boost/thread/shared_mutex.hpp>

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/time_point_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/time_point_pass.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/time_point_pass.cpp 2012-03-31 11:38:56 EDT (Sat, 31 Mar 2012)
@@ -19,6 +19,8 @@
 // template <class Clock, class Duration>
 // unique_lock(mutex_type& m, const chrono::time_point<Clock, Duration>& abs_time);
 
+#define BOOST_THREAD_SHARED_MUTEX_GENERIC
+
 #include <boost/thread/locks.hpp>
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/thread.hpp>

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/duration_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/duration_pass.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/duration_pass.cpp 2012-03-31 11:38:56 EDT (Sat, 31 Mar 2012)
@@ -19,6 +19,8 @@
 // template <class Rep, class Period>
 // upgrade_lock(mutex_type& m, const chrono::duration<Rep, Period>& rel_time);
 
+#define BOOST_THREAD_SHARED_MUTEX_GENERIC
+
 #include <boost/thread/locks.hpp>
 #include <boost/thread/shared_mutex.hpp>
 #include <boost/thread/thread.hpp>

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/time_point_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/time_point_pass.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/time_point_pass.cpp 2012-03-31 11:38:56 EDT (Sat, 31 Mar 2012)
@@ -19,6 +19,8 @@
 // template <class Clock, class Duration>
 // upgrade_lock(mutex_type& m, const chrono::time_point<Clock, Duration>& abs_time);
 
+#define BOOST_THREAD_SHARED_MUTEX_GENERIC
+
 #include <boost/thread/locks.hpp>
 #include <boost/thread/shared_mutex.hpp>
 #include <boost/thread/thread.hpp>


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