libfoedus-core
FOEDUS Core Library
|
A loosely maintained reference count for CLOCK algorithm. More...
A loosely maintained reference count for CLOCK algorithm.
Definition at line 163 of file cache_hashtable.hpp.
#include <cache_hashtable.hpp>
Public Member Functions | |
void | increment () __attribute__((always_inline)) |
bool | decrement (uint16_t subtract) __attribute__((always_inline)) |
returns whether the counter is still non-zero More... | |
Public Attributes | |
uint16_t | count_ |
|
inline |
returns whether the counter is still non-zero
Definition at line 172 of file cache_hashtable.hpp.
Referenced by foedus::cache::CacheHashtable::evict_main_loop(), and foedus::cache::CacheHashtable::evict_overflow_loop().
|
inline |
Definition at line 166 of file cache_hashtable.hpp.
References count_.
Referenced by foedus::cache::CacheHashtable::find(), and foedus::cache::CacheHashtable::find_batch().
uint16_t foedus::cache::CacheRefCount::count_ |
Definition at line 164 of file cache_hashtable.hpp.
Referenced by foedus::cache::CacheHashtable::CacheHashtable(), increment(), and foedus::cache::CacheHashtable::install().