Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57111 - sandbox/task/libs/task/src
From: oliver.kowalke_at_[hidden]
Date: 2009-10-23 13:29:58


Author: olli
Date: 2009-10-23 13:29:58 EDT (Fri, 23 Oct 2009)
New Revision: 57111
URL: http://svn.boost.org/trac/boost/changeset/57111

Log:
- correction related to spin_lock -> spin_unique_lock

Text files modified:
   sandbox/task/libs/task/src/spin_count_down_event.cpp | 1 -
   sandbox/task/libs/task/src/spin_manual_reset_event.cpp | 7 +++----
   2 files changed, 3 insertions(+), 5 deletions(-)

Modified: sandbox/task/libs/task/src/spin_count_down_event.cpp
==============================================================================
--- sandbox/task/libs/task/src/spin_count_down_event.cpp (original)
+++ sandbox/task/libs/task/src/spin_count_down_event.cpp 2009-10-23 13:29:58 EDT (Fri, 23 Oct 2009)
@@ -10,7 +10,6 @@
 
 #include <boost/task/detail/atomic.hpp>
 #include <boost/task/spin_mutex.hpp>
-#include <boost/task/spin_lock.hpp>
 #include <boost/task/utility.hpp>
 
 namespace boost {

Modified: sandbox/task/libs/task/src/spin_manual_reset_event.cpp
==============================================================================
--- sandbox/task/libs/task/src/spin_manual_reset_event.cpp (original)
+++ sandbox/task/libs/task/src/spin_manual_reset_event.cpp 2009-10-23 13:29:58 EDT (Fri, 23 Oct 2009)
@@ -10,7 +10,6 @@
 #include <boost/thread.hpp>
 
 #include <boost/task/detail/atomic.hpp>
-#include <boost/task/spin_lock.hpp>
 #include <boost/task/utility.hpp>
 
 namespace boost {
@@ -41,7 +40,7 @@
 void
 spin_manual_reset_event::reset()
 {
- spin_lock< spin_mutex > lk( enter_mtx_);
+ spin_mutex::scoped_lock lk( enter_mtx_);
         BOOST_ASSERT( lk);
 
         detail::atomic_exchange( & state_,
@@ -52,7 +51,7 @@
 spin_manual_reset_event::wait()
 {
         {
- spin_lock< spin_mutex > lk( enter_mtx_);
+ spin_mutex::scoped_lock lk( enter_mtx_);
                 BOOST_ASSERT( lk);
                 detail::atomic_fetch_add( & waiters_, 1);
         }
@@ -95,7 +94,7 @@
 spin_manual_reset_event::try_wait()
 {
         {
- spin_lock< spin_mutex > lk( enter_mtx_);
+ spin_mutex::scoped_lock lk( enter_mtx_);
                 BOOST_ASSERT( lk);
                 detail::atomic_fetch_add( & waiters_, 1);
         }


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