commit | e56609316b274433565e56c09b5381161dc5626c | [log] [tgz] |
---|---|---|
author | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Mon Jun 04 15:25:20 2012 -0700 |
committer | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Mon Jun 04 15:25:20 2012 -0700 |
tree | 6de0586779f6ab0260d6dbdefe3851ef1201a026 | |
parent | 56a88596f7c08a5f23e8f225abbfdc41504e0245 [diff] |
done with GUI
diff --git a/model/sync-logic.cc b/model/sync-logic.cc index 7a3eae6..31a161b 100644 --- a/model/sync-logic.cc +++ b/model/sync-logic.cc
@@ -532,5 +532,14 @@ } } +string +SyncLogic::getRootDigest() +{ + ostringstream os; + recursive_mutex::scoped_lock lock (m_stateMutex); + os << *m_state->getDigest(); + return os.str(); +} + }