comparison 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
comparison
equal deleted inserted replaced
1999:364cc624eb65 2000:39329372b667
81 81
82 class WorklistHandler; 82 class WorklistHandler;
83 class FindHandler; 83 class FindHandler;
84 class MoveHandler; 84 class MoveHandler;
85 85
86 void CheckContextAvailable();
87
88 void RegisterRestCallback(const void* parameters, 86 void RegisterRestCallback(const void* parameters,
89 bool lock); 87 bool lock);
90 88
91 void RegisterOnStoredInstanceCallback(const void* parameters); 89 void RegisterOnStoredInstanceCallback(const void* parameters);
92 90
177 175
178 void SignalChangeInternal(OrthancPluginChangeType changeType, 176 void SignalChangeInternal(OrthancPluginChangeType changeType,
179 OrthancPluginResourceType resourceType, 177 OrthancPluginResourceType resourceType,
180 const char* resource); 178 const char* resource);
181 179
180 bool InvokeSafeService(SharedLibrary& plugin,
181 _OrthancPluginService service,
182 const void* parameters);
183
184 bool InvokeProtectedService(SharedLibrary& plugin,
185 _OrthancPluginService service,
186 const void* parameters);
187
182 public: 188 public:
183 OrthancPlugins(); 189 OrthancPlugins();
184 190
185 virtual ~OrthancPlugins(); 191 virtual ~OrthancPlugins();
186 192
187 void SetServerContext(ServerContext& context); 193 void SetServerContext(ServerContext& context);
194
195 void ResetServerContext();
188 196
189 virtual bool Handle(HttpOutput& output, 197 virtual bool Handle(HttpOutput& output,
190 RequestOrigin origin, 198 RequestOrigin origin,
191 const char* remoteIp, 199 const char* remoteIp,
192 const char* username, 200 const char* username,