Add missing locks

refs #7251
This commit is contained in:
Gunnar Beutner 2014-10-17 20:47:48 +02:00
parent 3c68f1b2e0
commit 6193255446
1 changed files with 4 additions and 0 deletions

View File

@ -162,6 +162,8 @@ void ObjectListCommand::PrintProperties(std::ostream& fp, const Dictionary::Ptr&
int offset = 2;
ObjectLock olock(props);
BOOST_FOREACH(const Dictionary::Pair& kv, props) {
String key = kv.first;
Value val = kv.second;
@ -195,6 +197,8 @@ void ObjectListCommand::PrintHints(std::ostream& fp, const Dictionary::Ptr& debu
Array::Ptr messages = debug_hints->Get("messages");
ObjectLock olock(messages);
BOOST_FOREACH(const Value& msg, messages) {
PrintHint(fp, msg, indent);
}