From b9f9ce3bbae7531ea4cd971d31c07eb9d5fec594 Mon Sep 17 00:00:00 2001 From: theraven Date: Wed, 2 Feb 2011 17:08:47 +0000 Subject: [PATCH] Fix missing UNLOCK() in hash table. --- hash_table.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hash_table.h b/hash_table.h index 637ff91..32fb80c 100644 --- a/hash_table.h +++ b/hash_table.h @@ -279,6 +279,7 @@ static int PREFIX(_insert)(PREFIX(_table) *table, cell->secondMaps = 0; cell->value = value; table->table_used++; + MAP_UNLOCK(); return 1; } /* If this cell is full, try the next one. */ @@ -527,10 +528,9 @@ PREFIX(_current)(PREFIX(_table) *table, #undef MAP_TABLE_VALUE_TYPE -#ifndef MAP_TABLE_NO_LOCK -# undef MAP_LOCK -# undef MAP_UNLOCK -#else +#undef MAP_LOCK +#undef MAP_UNLOCK +#ifdef MAP_TABLE_NO_LOCK # undef MAP_TABLE_NO_LOCK #endif