moved unlock to please.

git-svn-id: file:///svn/unbound/trunk@806 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-12-04 21:53:19 +00:00
parent f187e1da7e
commit 11a764a82f
2 changed files with 2 additions and 1 deletions

View file

@ -20,6 +20,7 @@
entries one at a time. Instead they are removed and unlocked. entries one at a time. Instead they are removed and unlocked.
- fptr_wlist for markdelfunc. - fptr_wlist for markdelfunc.
- removed is_locked param from lruhash delkeyfunc. - removed is_locked param from lruhash delkeyfunc.
- moved bin_unlock during bin_split purely to please.
3 December 2007: Wouter 3 December 2007: Wouter
- changed checkconf/ to smallapp/ to make room for more support tools. - changed checkconf/ to smallapp/ to make room for more support tools.

View file

@ -144,6 +144,7 @@ bin_split(struct lruhash* table, struct lruhash_bin* newa,
} }
lock_quick_unlock(&newa[i].lock); lock_quick_unlock(&newa[i].lock);
lock_quick_unlock(&newa[newbit|i].lock); lock_quick_unlock(&newa[newbit|i].lock);
lock_quick_unlock(&table->array[i].lock);
} }
} }
@ -248,7 +249,6 @@ table_grow(struct lruhash* table)
/* delete the old bins */ /* delete the old bins */
lock_unprotect(&table->lock, table->array); lock_unprotect(&table->lock, table->array);
for(i=0; i<table->size; i++) { for(i=0; i<table->size; i++) {
lock_quick_unlock(&table->array[i].lock);
lock_quick_destroy(&table->array[i].lock); lock_quick_destroy(&table->array[i].lock);
} }
free(table->array); free(table->array);