|
Blender V4.3
|
Public Attributes | |
| CacheMap | map |
| std::atomic< int64_t > | logical_time = 0 |
| std::atomic< int64_t > | approximate_limit = 1024 * 1024 * 1024 |
| std::atomic< int64_t > | size_in_bytes = 0 |
| std::mutex | global_mutex |
| MemoryCount | memory |
| Vector< const GenericKey * > | keys |
Definition at line 35 of file memory_cache.cc.
| std::atomic<int64_t> blender::memory_cache::Cache::approximate_limit = 1024 * 1024 * 1024 |
Definition at line 39 of file memory_cache.cc.
Referenced by blender::memory_cache::set_approximate_size_limit(), and blender::memory_cache::try_enforce_limit().
| std::mutex blender::memory_cache::Cache::global_mutex |
Definition at line 46 of file memory_cache.cc.
Referenced by blender::memory_cache::clear(), blender::memory_cache::get_base(), and blender::memory_cache::try_enforce_limit().
| Vector<const GenericKey *> blender::memory_cache::Cache::keys |
Keys currently cached. This is stored separately from the map, because the map does not allow thread-safe iteration.
Definition at line 53 of file memory_cache.cc.
Referenced by blender::memory_cache::clear(), blender::memory_cache::get_base(), and blender::memory_cache::try_enforce_limit().
| std::atomic<int64_t> blender::memory_cache::Cache::logical_time = 0 |
Definition at line 38 of file memory_cache.cc.
Referenced by blender::memory_cache::get_base().
| CacheMap blender::memory_cache::Cache::map |
Definition at line 36 of file memory_cache.cc.
Referenced by blender::memory_cache::clear(), blender::memory_cache::get_base(), and blender::memory_cache::try_enforce_limit().
| MemoryCount blender::memory_cache::Cache::memory |
Amount of memory currently used in the cache.
Definition at line 48 of file memory_cache.cc.
Referenced by blender::memory_cache::clear(), blender::memory_cache::get_base(), and blender::memory_cache::try_enforce_limit().
| std::atomic<int64_t> blender::memory_cache::Cache::size_in_bytes = 0 |
This is derived from memory below, but is atomic for safe access when the global mutex is not locked.
Definition at line 44 of file memory_cache.cc.
Referenced by blender::memory_cache::clear(), blender::memory_cache::get_base(), and blender::memory_cache::try_enforce_limit().