mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-08 19:07:41 +02:00
Debug threads when possible.
git-svn-id: file:///svn/unbound/trunk@169 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
+5
-1
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user