diff OrthancServer/Plugins/Engine/OrthancPlugins.cpp @ 5452:8345267e8de5

Added OrthancPluginSetCurrentThreadName() in the plugin SDK
author Alain Mazy <am@osimis.io>
date Tue, 05 Dec 2023 17:22:36 +0100
parents 59e3b6f8c5be
children 48b8dae6dc77
line wrap: on
line diff
--- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp	Tue Dec 05 16:28:16 2023 +0100
+++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp	Tue Dec 05 17:22:36 2023 +0100
@@ -5530,6 +5530,12 @@
         return true;
       }
 
+      case _OrthancPluginService_SetCurrentThreadName:
+      {
+        Logging::SetCurrentThreadName(std::string(reinterpret_cast<const char*>(parameters)));
+        return true;
+      }
+
       default:
         return false;
     }