Mercurial > hg > orthanc-databases
changeset 229:5744f09b0b1b
note
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 03 Apr 2021 18:56:14 +0200 |
parents | 1ad9118b0717 |
children | 675f8322eb7c |
files | Framework/Plugins/DatabaseBackendAdapterV2.cpp |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
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_;