Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerIndex.h @ 5603:b2a97dfd719f
monitoring of stable resources now also considers the resource type
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 08 May 2024 10:29:35 +0200 |
parents | 48b8dae6dc77 |
children | 6e2dad336446 f7adfb22e20e |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.h Tue May 07 19:20:52 2024 +0200 +++ b/OrthancServer/Sources/ServerIndex.h Wed May 08 10:29:35 2024 +0200 @@ -43,7 +43,7 @@ boost::thread flushThread_; boost::thread unstableResourcesMonitorThread_; - LeastRecentlyUsedIndex<int64_t, UnstableResourcePayload> unstableResources_; + LeastRecentlyUsedIndex<std::pair<ResourceType, int64_t>, UnstableResourcePayload> unstableResources_; MaxStorageMode maximumStorageMode_; uint64_t maximumStorageSize_; @@ -55,11 +55,12 @@ static void UnstableResourcesMonitorThread(ServerIndex* that, unsigned int threadSleep); - void MarkAsUnstable(int64_t id, - Orthanc::ResourceType type, + void MarkAsUnstable(ResourceType type, + int64_t id, const std::string& publicId); - bool IsUnstableResource(int64_t id); + bool IsUnstableResource(ResourceType type, + int64_t id); public: ServerIndex(ServerContext& context,