Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Cache/MemoryObjectCache.cpp @ 4456:3e4f7b7840f0
new class: ParsedDicomCache()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 19 Jan 2021 16:11:23 +0100 |
parents | d9473bd5ed43 |
children | 789676a8c96a |
comparison
equal
deleted
inserted
replaced
4455:a8f554ca5ac6 | 4456:3e4f7b7840f0 |
---|---|
97 Recycle(0); | 97 Recycle(0); |
98 assert(content_.IsEmpty()); | 98 assert(content_.IsEmpty()); |
99 } | 99 } |
100 | 100 |
101 | 101 |
102 size_t MemoryObjectCache::GetCurrentSize() | |
103 { | |
104 #if !defined(__EMSCRIPTEN__) | |
105 boost::mutex::scoped_lock lock(cacheMutex_); | |
106 #endif | |
107 | |
108 return currentSize_; | |
109 } | |
110 | |
111 | |
102 size_t MemoryObjectCache::GetMaximumSize() | 112 size_t MemoryObjectCache::GetMaximumSize() |
103 { | 113 { |
104 #if !defined(__EMSCRIPTEN__) | 114 #if !defined(__EMSCRIPTEN__) |
105 boost::mutex::scoped_lock lock(cacheMutex_); | 115 boost::mutex::scoped_lock lock(cacheMutex_); |
106 #endif | 116 #endif |