| 349 | } |
| 350 | |
| 351 | size_t getMaxCacheSize() |
| 352 | { |
| 353 | size_t maxCacheSize = 0; |
| 354 | for (std::map<Device*,size_t>::iterator i=g_cache_size_map.begin(); i!= g_cache_size_map.end(); i++) |
| 355 | maxCacheSize = max(maxCacheSize, (*i).second); |
| 356 | return maxCacheSize; |
| 357 | } |
| 358 | |
| 359 | void Device::setCacheSize(size_t bytes) |
| 360 | { |
no test coverage detected