Mercurial > hg > orthanc
diff OrthancServer/ServerIndex.h @ 2665:389d050a2e66 jobs
fix deadlock, speed up unit tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 08 Jun 2018 13:51:31 +0200 |
parents | 878b59270859 |
children | d26dd081df97 |
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.h Thu Jun 07 21:37:40 2018 +0200 +++ b/OrthancServer/ServerIndex.h Fri Jun 08 13:51:31 2018 +0200 @@ -74,9 +74,11 @@ uint64_t maximumStorageSize_; unsigned int maximumPatients_; - static void FlushThread(ServerIndex* that); + static void FlushThread(ServerIndex* that, + unsigned int threadSleep); - static void UnstableResourcesMonitorThread(ServerIndex* that); + static void UnstableResourcesMonitorThread(ServerIndex* that, + unsigned int threadSleep); void MainDicomTagsToJson(Json::Value& result, int64_t resourceId, @@ -124,7 +126,8 @@ public: ServerIndex(ServerContext& context, - IDatabaseWrapper& database); + IDatabaseWrapper& database, + unsigned int threadSleep); ~ServerIndex();