comparison OrthancServer/ServerContext.h @ 3947:cf6eb4fc6841 transcoding

fix issue #179: use a shared mutex to avoid deadlock in python plugins
author Alain Mazy <alain@mazy.be>
date Tue, 19 May 2020 16:19:05 +0200
parents 0b3256c3ee14
children 5fe8c6d3212e
comparison
equal deleted inserted replaced
3946:1f33ed7f82e6 3947:cf6eb4fc6841
201 #if ORTHANC_ENABLE_PLUGINS == 1 201 #if ORTHANC_ENABLE_PLUGINS == 1
202 OrthancPlugins* plugins_; 202 OrthancPlugins* plugins_;
203 #endif 203 #endif
204 204
205 ServerListeners listeners_; 205 ServerListeners listeners_;
206 boost::recursive_mutex listenersMutex_; 206 boost::shared_mutex listenersMutex_;
207 207
208 bool done_; 208 bool done_;
209 bool haveJobsChanged_; 209 bool haveJobsChanged_;
210 bool isJobsEngineUnserialized_; 210 bool isJobsEngineUnserialized_;
211 SharedMessageQueue pendingChanges_; 211 SharedMessageQueue pendingChanges_;