mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
enable for lock checks.
git-svn-id: file:///svn/unbound/trunk@514 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
f8719c1aa1
commit
7d07e1b9c3
4 changed files with 13 additions and 1 deletions
|
|
@ -481,6 +481,14 @@ if test x_$enable_static_exe = x_yes; then
|
||||||
staticexe="-static"
|
staticexe="-static"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# set lock checking if requested
|
||||||
|
AC_ARG_ENABLE(lock_checks, AC_HELP_STRING([--enable-lock-checks],
|
||||||
|
[ enable to check lock and unlock calls, for debug purposes ]),
|
||||||
|
, )
|
||||||
|
if test x_$enable_lock_checks = x_yes; then
|
||||||
|
AC_DEFINE(ENABLE_LOCK_CHECKS, 1, [Define if you want to use debug lock checking (slow).])
|
||||||
|
fi
|
||||||
|
|
||||||
# check to see if libraries are needed for these functions.
|
# check to see if libraries are needed for these functions.
|
||||||
AC_CHECK_LIB(socket, socket)
|
AC_CHECK_LIB(socket, socket)
|
||||||
AC_CHECK_LIB(nsl, inet_pton)
|
AC_CHECK_LIB(nsl, inet_pton)
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
- accounting of memory improved
|
- accounting of memory improved
|
||||||
- outbound entries are allocated in the query region they are for.
|
- outbound entries are allocated in the query region they are for.
|
||||||
- extensive debugging for memory allocations.
|
- extensive debugging for memory allocations.
|
||||||
|
- --enable-lock-checks can be used to enable lock checking.
|
||||||
|
|
||||||
13 August 2007: Wouter
|
13 August 2007: Wouter
|
||||||
- fixup makefile, if lexer is missing give nice error and do not
|
- fixup makefile, if lexer is missing give nice error and do not
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,9 @@ This software is under BSD license, see LICENSE for details.
|
||||||
* --enable-static-exe
|
* --enable-static-exe
|
||||||
This enables a debug option to statically link, against ldns and
|
This enables a debug option to statically link, against ldns and
|
||||||
libevent libraries.
|
libevent libraries.
|
||||||
|
* --enable-lock-checks
|
||||||
|
This enables a debug option to check lock and unlock calls. It needs
|
||||||
|
a recent pthreads library to work.
|
||||||
|
|
||||||
Known issues
|
Known issues
|
||||||
------------
|
------------
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
/** DEBUG: use thread debug whenever possible */
|
/** DEBUG: use thread debug whenever possible */
|
||||||
#if defined(HAVE_PTHREAD) && defined(HAVE_PTHREAD_SPINLOCK_T)
|
#if defined(HAVE_PTHREAD) && defined(HAVE_PTHREAD_SPINLOCK_T) && defined(ENABLE_LOCK_CHECKS)
|
||||||
# define USE_THREAD_DEBUG
|
# define USE_THREAD_DEBUG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue