17 #ifndef QUERYENGINE_CODECACHEACCESSOR_HPP
18 #define QUERYENGINE_CODECACHEACCESSOR_HPP
24 template <
typename CompilationContext>
54 os <<
"CodeCacheAccessor<" << c.
name_ <<
">[current size=" << c.
code_cache_.size()
std::shared_ptr< CC > CodeCacheVal
CodeCacheVal< CompilationContext > get_value(const CodeCacheKey &key)
std::mutex code_cache_mutex_
std::vector< std::string > CodeCacheKey
friend std::ostream & operator<<(std::ostream &os, CodeCacheAccessor &c)
void swap(const CodeCacheKey &key, CodeCacheVal< CompilationContext > &&value)
std::condition_variable compilation_cv_
CodeCache< CompilationContext > code_cache_
void evictFractionEntries(const float fraction)
CodeCacheAccessor(size_t cache_size, std::string name="")
CodeCacheVal< CompilationContext > * get_or_wait(const CodeCacheKey &key)
void put(const CodeCacheKey &key, CodeCacheVal< CompilationContext > &value)