# HG changeset patch # User Sebastien Jodogne # Date 1559141495 -7200 # Node ID 6318db66448ee53de8242408361f199d441a7a0a # Parent 449c816968b9091ceb3379ac5f058f2acb41ec67 Performance: Replaced "OrthancPluginRegisterRestCallback" by "OrthancPluginRegisterRestCallbackNoLock" diff -r 449c816968b9 -r 6318db66448e NEWS --- a/NEWS Thu Apr 18 16:27:25 2019 +0200 +++ b/NEWS Wed May 29 16:51:35 2019 +0200 @@ -1,6 +1,8 @@ Pending changes in the mainline =============================== +* Performance: Replaced "OrthancPluginRegisterRestCallback" by "OrthancPluginRegisterRestCallbackNoLock" + Version 2.5 (2019-02-27) ======================== diff -r 449c816968b9 -r 6318db66448e Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Thu Apr 18 16:27:25 2019 +0200 +++ b/Plugin/Plugin.cpp Wed May 29 16:51:35 2019 +0200 @@ -686,15 +686,15 @@ /* Install the callbacks */ - OrthancPluginRegisterRestCallback(context_, "/web-viewer/series/(.*)", ServeCache); - OrthancPluginRegisterRestCallback(context_, "/web-viewer/is-stable-series/(.*)", IsStableSeries); - OrthancPluginRegisterRestCallback(context_, "/web-viewer/instances/(.*)", ServeCache); - OrthancPluginRegisterRestCallback(context, "/web-viewer/libs/(.*)", ServeEmbeddedFolder); + OrthancPluginRegisterRestCallbackNoLock(context_, "/web-viewer/series/(.*)", ServeCache); + OrthancPluginRegisterRestCallbackNoLock(context_, "/web-viewer/is-stable-series/(.*)", IsStableSeries); + OrthancPluginRegisterRestCallbackNoLock(context_, "/web-viewer/instances/(.*)", ServeCache); + OrthancPluginRegisterRestCallbackNoLock(context, "/web-viewer/libs/(.*)", ServeEmbeddedFolder); #if ORTHANC_STANDALONE == 1 - OrthancPluginRegisterRestCallback(context, "/web-viewer/app/(.*)", ServeEmbeddedFolder); + OrthancPluginRegisterRestCallbackNoLock(context, "/web-viewer/app/(.*)", ServeEmbeddedFolder); #else - OrthancPluginRegisterRestCallback(context, "/web-viewer/app/(.*)", ServeWebViewer); + OrthancPluginRegisterRestCallbackNoLock(context, "/web-viewer/app/(.*)", ServeWebViewer); #endif OrthancPluginRegisterOnChangeCallback(context, OnChangeCallback);