Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.cpp @ 2668:d26dd081df97 jobs
saving jobs engine on exit
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 08 Jun 2018 18:08:48 +0200 |
parents | 389d050a2e66 |
children | d33659c28c6b |
comparison
equal
deleted
inserted
replaced
2667:5fa2f2ce74f0 | 2668:d26dd081df97 |
---|---|
2094 boost::mutex::scoped_lock lock(mutex_); | 2094 boost::mutex::scoped_lock lock(mutex_); |
2095 db_.SetGlobalProperty(property, value); | 2095 db_.SetGlobalProperty(property, value); |
2096 } | 2096 } |
2097 | 2097 |
2098 | 2098 |
2099 bool ServerIndex::LookupGlobalProperty(std::string& value, | |
2100 GlobalProperty property) | |
2101 { | |
2102 boost::mutex::scoped_lock lock(mutex_); | |
2103 return db_.LookupGlobalProperty(value, property); | |
2104 } | |
2105 | |
2106 | |
2099 std::string ServerIndex::GetGlobalProperty(GlobalProperty property, | 2107 std::string ServerIndex::GetGlobalProperty(GlobalProperty property, |
2100 const std::string& defaultValue) | 2108 const std::string& defaultValue) |
2101 { | 2109 { |
2102 boost::mutex::scoped_lock lock(mutex_); | |
2103 | |
2104 std::string value; | 2110 std::string value; |
2105 if (db_.LookupGlobalProperty(value, property)) | 2111 |
2112 if (LookupGlobalProperty(value, property)) | |
2106 { | 2113 { |
2107 return value; | 2114 return value; |
2108 } | 2115 } |
2109 else | 2116 else |
2110 { | 2117 { |