libfoedus-core
FOEDUS Core Library
foedus::cache::CacheHashtable::EvictArgs Struct Reference

Parameters for evict() More...

Detailed Description

Parameters for evict()

Definition at line 286 of file cache_hashtable.hpp.

#include <cache_hashtable.hpp>

Public Member Functions

void add_evicted (ContentId content)
 

Public Attributes

uint64_t target_count_
 [In] Evicts entries up to about target_count (maybe a bit more or less) More...
 
uint64_t evicted_count_
 [Out] Number of entries that were actually evicted More...
 
ContentIdevicted_contents_
 [Out] Array of ContentId evicted. More...
 

Member Function Documentation

void foedus::cache::CacheHashtable::EvictArgs::add_evicted ( ContentId  content)
inline

Definition at line 295 of file cache_hashtable.hpp.

References evicted_count_.

Referenced by foedus::cache::CacheHashtable::evict_main_loop(), and foedus::cache::CacheHashtable::evict_overflow_loop().

295  {
296  // because of the loose synchronization, we might get zero. skip it.
297  if (content) {
299  ++evicted_count_;
300  }
301  }
ContentId * evicted_contents_
[Out] Array of ContentId evicted.
uint64_t evicted_count_
[Out] Number of entries that were actually evicted

Here is the caller graph for this function:

Member Data Documentation

ContentId* foedus::cache::CacheHashtable::EvictArgs::evicted_contents_

[Out] Array of ContentId evicted.

Definition at line 292 of file cache_hashtable.hpp.

uint64_t foedus::cache::CacheHashtable::EvictArgs::evicted_count_
uint64_t foedus::cache::CacheHashtable::EvictArgs::target_count_

[In] Evicts entries up to about target_count (maybe a bit more or less)

Definition at line 288 of file cache_hashtable.hpp.

Referenced by foedus::cache::CacheHashtable::evict(), and foedus::cache::CacheHashtable::evict_main_loop().


The documentation for this struct was generated from the following file: