Mercurial > hg > orthanc-webviewer
comparison Plugin/Cache/CacheScheduler.h @ 147:70d1fe6d6309
Avoid hard crash if not enough memory
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 12:43:58 +0100 |
parents | 3809121c3290 |
children | 5dc54316d68b |
comparison
equal
deleted
inserted
replaced
146:3cde3e806abe | 147:70d1fe6d6309 |
---|---|
37 class PrefetchQueue; | 37 class PrefetchQueue; |
38 class BundleScheduler; | 38 class BundleScheduler; |
39 | 39 |
40 typedef std::map<int, BundleScheduler*> BundleSchedulers; | 40 typedef std::map<int, BundleScheduler*> BundleSchedulers; |
41 | 41 |
42 size_t maxPrefetchSize_; | 42 size_t maxPrefetchSize_; |
43 | |
44 boost::mutex cacheMutex_; | 43 boost::mutex cacheMutex_; |
45 boost::mutex factoryMutex_; | 44 boost::mutex factoryMutex_; |
46 boost::recursive_mutex policyMutex_; | 45 boost::recursive_mutex policyMutex_; |
47 CacheManager& cache_; | 46 CacheManager& cache_; |
48 std::auto_ptr<IPrefetchPolicy> policy_; | 47 std::auto_ptr<IPrefetchPolicy> policy_; |