Debug threads when possible.

git-svn-id: file:///svn/unbound/trunk@169 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-03-09 14:09:32 +00:00
parent 1ea78ab032
commit 9d89d05bd1
+5 -1
View File
@@ -69,7 +69,11 @@
__FILE__, __LINE__, strerror(err)); \
} while(0)
#define USE_THREAD_DEBUG
/** DEBUG: use thread debug whenever possible */
#if defined(HAVE_PTHREAD) && defined(HAVE_PTHREAD_SPINLOCK_T)
# define USE_THREAD_DEBUG
#endif
#ifdef USE_THREAD_DEBUG
/******************* THREAD DEBUG ************************/
/* (some) checking; to detect races and deadlocks. */