diff OrthancServer/ServerContext.h @ 1223:5bd4c9f85b4c

fix race condition while unregistering plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Nov 2014 11:52:40 +0100
parents 1169528a9a5f
children f1c01451a8ee
line wrap: on
line diff
--- a/OrthancServer/ServerContext.h	Tue Nov 11 09:57:42 2014 +0100
+++ b/OrthancServer/ServerContext.h	Wed Nov 12 11:52:40 2014 +0100
@@ -200,6 +200,11 @@
       plugins_ = &plugins;
     }
 
+    void ResetOrthancPlugins()
+    {
+      plugins_ = NULL;
+    }
+
     bool DeleteResource(Json::Value& target,
                         const std::string& uuid,
                         ResourceType expectedType);