Slabbed hash table. Drops contention on hash table main lock.

git-svn-id: file:///svn/unbound/trunk@194 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-03-23 15:17:11 +00:00
parent 2092d6535a
commit f559c3c2ca
11 changed files with 711 additions and 12 deletions
-4
View File
@@ -71,10 +71,6 @@
/******************* THREAD DEBUG ************************/
#include <pthread.h>
/** How long to wait before lock attempt is a failure. */
#define CHECK_LOCK_TIMEOUT 5 /* seconds */
/** How long to wait before join attempt is a failure. */
#define CHECK_JOIN_TIMEOUT 120 /* seconds */
/** How many threads to allocate for */
#define THRDEBUG_MAX_THREADS 32 /* threads */
/** do we check locking order */