Mercurial > hg > orthanc-python
changeset 202:ba4dd45ab937
fix mingw build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 03 Jul 2024 09:48:42 +0200 |
parents | 2a2fae513366 |
children | 28531e615104 |
files | Sources/RestCallbacks.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Sources/RestCallbacks.cpp Wed Jul 03 09:39:25 2024 +0200 +++ b/Sources/RestCallbacks.cpp Wed Jul 03 09:48:42 2024 +0200 @@ -29,7 +29,7 @@ #include "PythonString.h" #include <boost/regex.hpp> -#include <boost/thread/shared_mutex.hpp> +#include <boost/thread.hpp> class RestCallback : public boost::noncopyable @@ -224,7 +224,8 @@ boost::unique_lock<boost::shared_mutex> restCallbacksLock(restCallbacksMutex_); ORTHANC_PLUGINS_LOG_INFO("Registering a Python REST callback on URI: " + std::string(uri)); - OrthancPlugins::RegisterRestCallback<RestCallbackHandler>(uri, true /* thread safe */); + OrthancPlugins::RegisterRestCallback<RestCallbackHandler>( + uri, true /* thread safe, thus OrthancPluginRegisterRestCallbackNoLock() is used internally */); restCallbacks_.push_back(new RestCallback(uri, callback)); }