Mercurial > hg > orthanc-webviewer
comparison Plugin/Cache/CacheScheduler.cpp @ 4:ecefd45026bf
configuration of the cache
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 26 Feb 2015 16:55:37 +0100 |
parents | 02f7a0400a91 |
children | fcbc8e77cf8f |
comparison
equal
deleted
inserted
replaced
3:ca16691db433 | 4:ecefd45026bf |
---|---|
298 | 298 |
299 bundles_[bundle] = new BundleScheduler(bundle, factory, cache_, cacheMutex_, numThreads, maxPrefetchSize_); | 299 bundles_[bundle] = new BundleScheduler(bundle, factory, cache_, cacheMutex_, numThreads, maxPrefetchSize_); |
300 } | 300 } |
301 | 301 |
302 | 302 |
303 void CacheScheduler::SetQuota(int bundle, | |
304 uint32_t maxCount, | |
305 uint64_t maxSpace) | |
306 { | |
307 boost::mutex::scoped_lock lock(cacheMutex_); | |
308 cache_.SetBundleQuota(bundle, maxCount, maxSpace); | |
309 } | |
310 | |
311 | |
303 void CacheScheduler::Invalidate(int bundle, | 312 void CacheScheduler::Invalidate(int bundle, |
304 const std::string& item) | 313 const std::string& item) |
305 { | 314 { |
306 { | 315 { |
307 boost::mutex::scoped_lock lock(cacheMutex_); | 316 boost::mutex::scoped_lock lock(cacheMutex_); |