From: Wouter Wijngaards Date: Fri, 9 Mar 2007 14:09:32 +0000 (+0000) Subject: Debug threads when possible. X-Git-Tag: release-0.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d89d05bd1a4e069eb02ea8f4e0f055b9a9359ae;p=thirdparty%2Funbound.git Debug threads when possible. git-svn-id: file:///svn/unbound/trunk@169 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/util/locks.h b/util/locks.h index fb99a79db..36cc1e50e 100644 --- a/util/locks.h +++ b/util/locks.h @@ -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. */