comparison OrthancServer/ServerIndex.cpp @ 1357:216db29c5aa9

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 13 May 2015 15:56:41 +0200
parents 3dd494f201a1
children 111e23bb4904
comparison
equal deleted inserted replaced
1356:ab9f3d5910bd 1357:216db29c5aa9
1076 1076
1077 1077
1078 void ServerIndex::GetAllUuids(std::list<std::string>& target, 1078 void ServerIndex::GetAllUuids(std::list<std::string>& target,
1079 ResourceType resourceType) 1079 ResourceType resourceType)
1080 { 1080 {
1081 std::list<std::string> lst; 1081 boost::mutex::scoped_lock lock(mutex_);
1082 1082 db_.GetAllPublicIds(target, resourceType);
1083 {
1084 boost::mutex::scoped_lock lock(mutex_);
1085 db_.GetAllPublicIds(lst, resourceType);
1086 }
1087
1088 target.clear();
1089 for (std::list<std::string>::const_iterator
1090 it = lst.begin(); it != lst.end(); ++it)
1091 {
1092 target.push_back(*it);
1093 }
1094 } 1083 }
1095 1084
1096 1085
1097 template <typename T> 1086 template <typename T>
1098 static void FormatLog(Json::Value& target, 1087 static void FormatLog(Json::Value& target,