]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Debug threads when possible.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 9 Mar 2007 14:09:32 +0000 (14:09 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 9 Mar 2007 14:09:32 +0000 (14:09 +0000)
git-svn-id: file:///svn/unbound/trunk@169 be551aaa-1e26-0410-a405-d3ace91eadb9

util/locks.h

index fb99a79db2c77dd85c2557ef67f0c038f035f117..36cc1e50ecf146fe2d300703fc145eff9b8e8f4c 100644 (file)
                __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. */