Renames walkIdle to walkAllStates and documents method behavior

This commit is contained in:
Simone Mainardi 2019-11-18 11:35:43 +01:00
parent c9b538a199
commit bd5041ead2
3 changed files with 15 additions and 8 deletions

View file

@ -122,7 +122,7 @@ bool GenericHash::add(GenericHashEntry *h, bool do_lock) {
/* ************************************ */
void GenericHash::walkIdle(bool (*walker)(GenericHashEntry *h, void *user_data), void *user_data) {
void GenericHash::walkAllStates(bool (*walker)(GenericHashEntry *h, void *user_data), void *user_data) {
vector<GenericHashEntry*> *cur_idle = NULL;
u_int new_walk_idle_start_hash_id = 0;
bool update_walk_idle_start_hash_id;