1 /* associative array */ 2 void assoc_init(const int hashpower_init); 3 4 item *assoc_find(const char *key, const size_t nkey, const uint32_t hv); 5 int assoc_insert(item *item, const uint32_t hv); 6 void assoc_delete(const char *key, const size_t nkey, const uint32_t hv); 7 8 int start_assoc_maintenance_thread(void); 9 void stop_assoc_maintenance_thread(void); 10 void assoc_start_expand(uint64_t curr_items); 11 12 /* walk functions */ 13 void *assoc_get_iterator(void); 14 bool assoc_iterate(void *iterp, item **it); 15 void assoc_iterate_final(void *iterp); 16 17 extern unsigned int hashpower; 18