MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ cache_region()

void MayaFlux::Kakshya::RegionCacheManager::cache_region ( const RegionCache cache)

Definition at line 28 of file RegionCacheManager.cpp.

29{
30 std::lock_guard<std::recursive_mutex> lock(m_mutex);
31 const Region& region = cache.source_region;
32
33 auto it = m_cache.find(region);
34 if (it != m_cache.end()) {
35 it->second = cache;
36 update_lru(region);
37 } else {
39 m_cache[region] = cache;
40 m_lru_list.push_front(region);
41 }
42}
std::unordered_map< Region, RegionCache, RegionHash > m_cache

References evict_lru_if_needed(), m_cache, m_lru_list, m_mutex, MayaFlux::Kakshya::RegionCache::source_region, and update_lru().

Referenced by cache_segment().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: