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

◆ cache_region()

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

Definition at line 26 of file RegionCacheManager.cpp.

27{
28 std::lock_guard<std::recursive_mutex> lock(m_mutex);
29 const Region& region = cache.source_region;
30
31 auto it = m_cache.find(region);
32 if (it != m_cache.end()) {
33 it->second = cache;
34 update_lru(region);
35 } else {
37 m_cache[region] = cache;
38 m_lru_list.push_front(region);
39 }
40}
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: