Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60742 - sandbox/stm/branches/vbe/boost/stm/detail
From: vicente.botet_at_[hidden]
Date: 2010-03-21 06:40:16


Author: viboes
Date: 2010-03-21 06:40:16 EDT (Sun, 21 Mar 2010)
New Revision: 60742
URL: http://svn.boost.org/trac/boost/changeset/60742

Log:
Boost.STM/vbe:
* Clean up traces

Text files modified:
   sandbox/stm/branches/vbe/boost/stm/detail/transaction_impl.hpp | 22 +++++++++++-----------
   1 files changed, 11 insertions(+), 11 deletions(-)

Modified: sandbox/stm/branches/vbe/boost/stm/detail/transaction_impl.hpp
==============================================================================
--- sandbox/stm/branches/vbe/boost/stm/detail/transaction_impl.hpp (original)
+++ sandbox/stm/branches/vbe/boost/stm/detail/transaction_impl.hpp 2010-03-21 06:40:16 EDT (Sun, 21 Mar 2010)
@@ -535,10 +535,10 @@
     assert_end_flag_(0xffffffff)
 {
    auto_general_lock_.unlock();
- {
- boost::lock_guard<boost::mutex> lk(log_mutex);
- std::cout << this << " " << this->parent() << " " << this_thread::get_id() << " ****INFO transaction" << __FILE__ << "[" << __LINE__ << "]" << BOOST_CURRENT_FUNCTION << std::endl;
- }
+ //~ {
+ //~ boost::lock_guard<boost::mutex> lk(log_mutex);
+ //~ std::cout << this << " " << this->parent() << " " << this_thread::get_id() << " ****INFO transaction" << __FILE__ << "[" << __LINE__ << "]" << BOOST_CURRENT_FUNCTION << std::endl;
+ //~ }
    if (direct_updating()) doIntervalDeletions();
 #if PERFORMING_LATM
    while (blocked()) { SLEEP(10) ; }
@@ -781,10 +781,10 @@
 inline transaction::~transaction()
 {
     BOOST_STM_CALL_CONTEXT_DCL_INST(this);
- {
- boost::lock_guard<boost::mutex> lk(log_mutex);
- std::cout << this << " " << this->parent() << " " << this_thread::get_id() << " ****INFO ~transaction" << __FILE__ << "[" << __LINE__ << "]" << BOOST_CURRENT_FUNCTION << std::endl;
- }
+ //~ {
+ //~ boost::lock_guard<boost::mutex> lk(log_mutex);
+ //~ std::cout << this << " " << this->parent() << " " << this_thread::get_id() << " ****INFO ~transaction" << __FILE__ << "[" << __LINE__ << "]" << BOOST_CURRENT_FUNCTION << std::endl;
+ //~ }
     //~ BOOST_STM_INFO<<std::endl;
    // if we're not an inflight transaction - bail
    if (state_ != e_in_flight)
@@ -999,9 +999,9 @@
         synchro::unique_lock<Mutex> lk_i(*inflight_lock() BOOST_STM_CALL_CONTEXT("inflight_lock"));
 
         BOOST_STM_TRANSACTION_INVARIANT;
- {boost::lock_guard<boost::mutex> lk(log_mutex);
- std::cout << this << " " << this->parent() << " " << this_thread::get_id() << " ****INFO erase" << __FILE__ << "[" << __LINE__ << "]" << BOOST_CURRENT_FUNCTION << std::endl;
- }
+ //~ {boost::lock_guard<boost::mutex> lk(log_mutex);
+ //~ std::cout << this << " " << this->parent() << " " << this_thread::get_id() << " ****INFO erase" << __FILE__ << "[" << __LINE__ << "]" << BOOST_CURRENT_FUNCTION << std::endl;
+ //~ }
         in_flight_transactions().erase(this);
 
 #if PERFORMING_COMPOSITION


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