Mercurial > hg > orthanc-webviewer
comparison Plugin/Cache/CacheScheduler.cpp @ 115:c8ca47a67bf3
automatic clearing of the cache
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Dec 2015 17:08:51 +0100 |
parents | a6ba21a083e5 |
children | 3809121c3290 |
comparison
equal
deleted
inserted
replaced
114:628697fdfcbd | 115:c8ca47a67bf3 |
---|---|
409 | 409 |
410 ICacheFactory& CacheScheduler::GetFactory(int bundle) | 410 ICacheFactory& CacheScheduler::GetFactory(int bundle) |
411 { | 411 { |
412 return GetBundleScheduler(bundle).GetFactory(); | 412 return GetBundleScheduler(bundle).GetFactory(); |
413 } | 413 } |
414 | |
415 | |
416 void CacheScheduler::SetProperty(CacheProperty property, | |
417 const std::string& value) | |
418 { | |
419 boost::mutex::scoped_lock lock(cacheMutex_); | |
420 cache_.SetProperty(property, value); | |
421 } | |
422 | |
423 | |
424 bool CacheScheduler::LookupProperty(std::string& target, | |
425 CacheProperty property) | |
426 { | |
427 boost::mutex::scoped_lock lock(cacheMutex_); | |
428 return cache_.LookupProperty(target, property); | |
429 } | |
430 | |
431 | |
432 void CacheScheduler::Clear() | |
433 { | |
434 boost::mutex::scoped_lock lock(cacheMutex_); | |
435 return cache_.Clear(); | |
436 } | |
414 } | 437 } |