Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
2664:a21b244efb37 | 2665:389d050a2e66 |
---|---|
72 | 72 |
73 uint64_t currentStorageSize_; | 73 uint64_t currentStorageSize_; |
74 uint64_t maximumStorageSize_; | 74 uint64_t maximumStorageSize_; |
75 unsigned int maximumPatients_; | 75 unsigned int maximumPatients_; |
76 | 76 |
77 static void FlushThread(ServerIndex* that); | 77 static void FlushThread(ServerIndex* that, |
78 | 78 unsigned int threadSleep); |
79 static void UnstableResourcesMonitorThread(ServerIndex* that); | 79 |
80 static void UnstableResourcesMonitorThread(ServerIndex* that, | |
81 unsigned int threadSleep); | |
80 | 82 |
81 void MainDicomTagsToJson(Json::Value& result, | 83 void MainDicomTagsToJson(Json::Value& result, |
82 int64_t resourceId, | 84 int64_t resourceId, |
83 ResourceType resourceType); | 85 ResourceType resourceType); |
84 | 86 |
122 MetadataType metadata, | 124 MetadataType metadata, |
123 const std::string& value); | 125 const std::string& value); |
124 | 126 |
125 public: | 127 public: |
126 ServerIndex(ServerContext& context, | 128 ServerIndex(ServerContext& context, |
127 IDatabaseWrapper& database); | 129 IDatabaseWrapper& database, |
130 unsigned int threadSleep); | |
128 | 131 |
129 ~ServerIndex(); | 132 ~ServerIndex(); |
130 | 133 |
131 void Stop(); | 134 void Stop(); |
132 | 135 |