Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83281 - trunk/boost/thread
From: vicente.botet_at_[hidden]
Date: 2013-03-03 08:56:41


Author: viboes
Date: 2013-03-03 08:56:40 EST (Sun, 03 Mar 2013)
New Revision: 83281
URL: http://svn.boost.org/trac/boost/changeset/83281

Log:
Thread: fix typo on synchronized_value.hp and initialize id_ on testable_mutex.
Text files modified:
   trunk/boost/thread/synchronized_value.hpp | 2 +-
   trunk/boost/thread/testable_mutex.hpp | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/thread/synchronized_value.hpp
==============================================================================
--- trunk/boost/thread/synchronized_value.hpp (original)
+++ trunk/boost/thread/synchronized_value.hpp 2013-03-03 08:56:40 EST (Sun, 03 Mar 2013)
@@ -590,7 +590,7 @@
     void swap(value_type & rhs)
     {
       strict_lock<mutex_type> lk(mtx_);
- boost::swap(value_, rhs.value_);
+ boost::swap(value_, rhs);
     }
 
 

Modified: trunk/boost/thread/testable_mutex.hpp
==============================================================================
--- trunk/boost/thread/testable_mutex.hpp (original)
+++ trunk/boost/thread/testable_mutex.hpp 2013-03-03 08:56:40 EST (Sun, 03 Mar 2013)
@@ -44,7 +44,7 @@
     /// Non copyable
     BOOST_THREAD_NO_COPYABLE(testable_mutex)
 
- testable_mutex() {}
+ testable_mutex() : id_(thread::id()) {}
 
     void lock()
     {


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