|
NGen
|
#include <multithreading.hpp>
Collaboration diagram for multithreading::shared_cache< Key, T >:Public Member Functions | |
| std::pair< cache_slot< T > &, bool > | find_or_insert (Key const &key, std::optional< Key > const &eviction_floor) |
| std::set< Key > | keys () const |
Private Attributes | |
| std::map< Key, cache_slot< T > > | cache |
| std::shared_mutex | mutex |
| auto multithreading::shared_cache< Key, T >::find_or_insert | ( | Key const & | key, |
| std::optional< Key > const & | eviction_floor ) |
References multithreading::evict_stale_values().
| auto multithreading::shared_cache< Key, T >::keys | ( | ) | const |
|
private |
|
mutableprivate |