commit | 802373866db8b3d2ad747ecd3a599d4e1fed217f | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Thu Oct 04 10:20:47 2012 -0700 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Thu Oct 04 10:20:47 2012 -0700 |
tree | 08a1c908e8b083f6dccf7c1b39c2b0d636d842e3 | |
parent | 1a0d7742239a5ab2d54a7cccf17a58d70d0d1ff0 [diff] [blame] |
Adding getNumberOfBranches method to sync logic
diff --git a/model/sync-logic.cc b/model/sync-logic.cc index de7182e..d91923c 100644 --- a/model/sync-logic.cc +++ b/model/sync-logic.cc
@@ -577,5 +577,12 @@ return os.str(); } +size_t +SyncLogic::getNumberOfBranches () const +{ + recursive_mutex::scoped_lock lock (m_stateMutex); + return m_state->getLeaves ().size (); +} + }