|
Electroneum
|
#include <lruhash.h>

Public Attributes | |
| lock_rw_type | lock |
| struct lruhash_entry * | overflow_next |
| struct lruhash_entry * | lru_next |
| struct lruhash_entry * | lru_prev |
| hashvalue_type | hash |
| void * | key |
| void * | data |
An entry into the hash table. To change overflow_next you need to hold the bin lock. To change the lru items you need to hold the hashtable lock. This structure is designed as part of key struct. And key pointer helps to get the surrounding structure. Data should be allocated on its own.
| hashvalue_type lruhash_entry::hash |
| lock_rw_type lruhash_entry::lock |
| struct lruhash_entry* lruhash_entry::lru_next |
| struct lruhash_entry* lruhash_entry::lru_prev |
| struct lruhash_entry* lruhash_entry::overflow_next |