Mercurial > hg > orthanc-python
changeset 323:7ab0a5ecda51
sync
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Tue, 07 Apr 2026 14:28:40 +0200 |
| parents | df6d8c72e087 |
| children | d8c06c9408c2 |
| files | Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h Sources/OnChangeCallback.cpp Sources/Plugin.cpp |
| diffstat | 3 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h Tue Apr 07 13:59:54 2026 +0200 +++ b/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h Tue Apr 07 14:28:40 2026 +0200 @@ -1030,14 +1030,20 @@ OrthancPluginSetMetricsValue(GetGlobalContext(), name, value, OrthancPluginMetricsType_Default); } +#endif + +#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 1) inline void SetMetricsValue(const char* name, int64_t value) { OrthancPluginSetMetricsIntegerValue(GetGlobalContext(), name, value, OrthancPluginMetricsType_Default); } +#endif + +#if HAS_ORTHANC_PLUGIN_METRICS == 1 class MetricsTimer : public boost::noncopyable { private:
--- a/Sources/OnChangeCallback.cpp Tue Apr 07 13:59:54 2026 +0200 +++ b/Sources/OnChangeCallback.cpp Tue Apr 07 14:28:40 2026 +0200 @@ -173,7 +173,9 @@ static void ChangesWorker() { +#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 2) OrthancPluginSetCurrentThreadName(OrthancPlugins::GetGlobalContext(), "PY-CHANGES"); +#endif while (!stopping_) {
--- a/Sources/Plugin.cpp Tue Apr 07 13:59:54 2026 +0200 +++ b/Sources/Plugin.cpp Tue Apr 07 14:28:40 2026 +0200 @@ -590,7 +590,9 @@ static void DisplayMemoryUsageThread() { +#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 2) OrthancPluginSetCurrentThreadName(OrthancPlugins::GetGlobalContext(), "PY-MEMORY"); +#endif { PythonLock lock;
