Mercurial > hg > orthanc
diff Plugins/Engine/OrthancPlugins.h @ 2000:39329372b667
Speedup in plugins by removing unnecessary locks
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 31 May 2016 12:19:53 +0200 |
parents | 364cc624eb65 |
children | 50b9bc19dc62 |
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.h Thu May 26 14:24:56 2016 +0200 +++ b/Plugins/Engine/OrthancPlugins.h Tue May 31 12:19:53 2016 +0200 @@ -83,8 +83,6 @@ class FindHandler; class MoveHandler; - void CheckContextAvailable(); - void RegisterRestCallback(const void* parameters, bool lock); @@ -179,6 +177,14 @@ OrthancPluginResourceType resourceType, const char* resource); + bool InvokeSafeService(SharedLibrary& plugin, + _OrthancPluginService service, + const void* parameters); + + bool InvokeProtectedService(SharedLibrary& plugin, + _OrthancPluginService service, + const void* parameters); + public: OrthancPlugins(); @@ -186,6 +192,8 @@ void SetServerContext(ServerContext& context); + void ResetServerContext(); + virtual bool Handle(HttpOutput& output, RequestOrigin origin, const char* remoteIp,