commit | 5548c049b87863bd64ae1b08157e144f0e766586 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Thu Oct 04 19:10:09 2012 -0700 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Thu Oct 04 19:10:09 2012 -0700 |
tree | 6ace4f68451b1488d633ee682a1f8bf093c9ffef | |
parent | 03ec7bf65a1f1dd23f20fcb355f2740e58ec07ca [diff] [blame] |
Solving bug with interest-table
diff --git a/model/sync-logic.cc b/model/sync-logic.cc index fe43abe..ed90655 100644 --- a/model/sync-logic.cc +++ b/model/sync-logic.cc
@@ -586,5 +586,16 @@ return m_state->getLeaves ().size (); } +void +SyncLogic::printState () const +{ + recursive_mutex::scoped_lock lock (m_stateMutex); + + BOOST_FOREACH (const boost::shared_ptr<Sync::Leaf> leaf, m_state->getLeaves ()) + { + std::cout << *leaf << std::endl; + } +} + }