Mercurial > hg > orthanc-databases
diff Framework/Plugins/DatabaseBackendAdapterV2.cpp @ 229:5744f09b0b1b
note
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 03 Apr 2021 18:56:14 +0200 |
parents | a4918d57435c |
children | 33fa478c119a |
line wrap: on
line diff
--- a/Framework/Plugins/DatabaseBackendAdapterV2.cpp Sat Apr 03 18:31:21 2021 +0200 +++ b/Framework/Plugins/DatabaseBackendAdapterV2.cpp Sat Apr 03 18:56:14 2021 +0200 @@ -55,6 +55,15 @@ class DatabaseBackendAdapterV2::Adapter : public boost::noncopyable { private: + /** + * The "managerMutex_" should not be necessary, as it is redundant + * with with "Orthanc::ServerIndex::mutex_" (the global mutex) in + * Orthanc <= 1.9.1, or with + * "Orthanc::OrthancPluginDatabase::mutex_" in Orthanc >= 1.9.2 + * (the global mutex limited to backward compatibility with older + * plugins). It is left here for additional safety. + **/ + std::unique_ptr<IDatabaseBackend> backend_; boost::mutex managerMutex_; std::unique_ptr<DatabaseManager> manager_;