Mercurial > hg > orthanc
diff OrthancServer/LuaScripting.cpp @ 1456:68827c07e683
fix recursive calls with Lua
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 02 Jul 2015 15:44:24 +0200 |
parents | a68545767975 |
children | 905842836ad4 |
line wrap: on
line diff
--- a/OrthancServer/LuaScripting.cpp Thu Jul 02 15:17:19 2015 +0200 +++ b/OrthancServer/LuaScripting.cpp Thu Jul 02 15:44:24 2015 +0200 @@ -390,7 +390,7 @@ DicomInstanceToStore& instance, const Json::Value& simplifiedTags) { - boost::mutex::scoped_lock lock(mutex_); + boost::recursive_mutex::scoped_lock lock(mutex_); Json::Value metadata = Json::objectValue; @@ -437,7 +437,7 @@ if (context_.GetIndex().LookupResource(tags, change.GetPublicId(), change.GetResourceType()) && context_.GetIndex().GetMetadata(metadata, change.GetPublicId())) { - boost::mutex::scoped_lock lock(mutex_); + boost::recursive_mutex::scoped_lock lock(mutex_); if (lua_.IsExistingFunction(name)) { @@ -472,7 +472,7 @@ { static const char* NAME = "ReceivedInstanceFilter"; - boost::mutex::scoped_lock lock(mutex_); + boost::recursive_mutex::scoped_lock lock(mutex_); if (lua_.IsExistingFunction(NAME)) {