From 9d89d05bd1a4e069eb02ea8f4e0f055b9a9359ae Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Fri, 9 Mar 2007 14:09:32 +0000 Subject: [PATCH] Debug threads when possible. git-svn-id: file:///svn/unbound/trunk@169 be551aaa-1e26-0410-a405-d3ace91eadb9 --- util/locks.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. */ -- 2.47.2