Mercurial > hg > orthanc
diff OrthancServer/Sources/Database/StatelessDatabaseOperations.h @ 4594:d494b4f1103e db-changes
removed the global database mutex from ServerIndex and StatelessDatabaseOperations
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 16 Mar 2021 12:43:43 +0100 |
parents | ff8170d17d90 |
children | cc64385593ef |
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/StatelessDatabaseOperations.h Mon Mar 15 18:22:53 2021 +0100 +++ b/OrthancServer/Sources/Database/StatelessDatabaseOperations.h Tue Mar 16 12:43:43 2021 +0100 @@ -38,7 +38,7 @@ #include "IDatabaseWrapper.h" #include "../DicomInstanceOrigin.h" -#include <boost/thread/mutex.hpp> // TODO - REMOVE +#include <boost/shared_ptr.hpp> namespace Orthanc @@ -86,6 +86,7 @@ { } + // WARNING: This method can be invoked from several threads concurrently virtual ITransactionContext* Create() = 0; }; @@ -405,7 +406,6 @@ class Transaction; IDatabaseWrapper& db_; - boost::mutex databaseMutex_; // TODO - REMOVE std::unique_ptr<ITransactionContextFactory> factory_; unsigned int maxRetries_; boost::shared_ptr<MainDicomTagsRegistry> mainDicomTagsRegistry_; // "shared_ptr" because of PImpl