From 0e5b4105d1640e106a2de5e1ebc696a7e4bfa04d Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Wed, 6 Feb 2008 10:09:54 +0000 Subject: [PATCH] Fix for nothreading. git-svn-id: file:///svn/unbound/trunk@922 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 5 +++++ testcode/asynclook.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index 084aae29f..65a81cbeb 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,8 @@ +6 February 2008: Wouter + - clearer explanation of threading configure options. + - fixup asynclook test for nothreading (it creates only one process + to do the extended test). + 5 February 2008: Wouter - statistics-interval: seconds option added. - test for statistics option diff --git a/testcode/asynclook.c b/testcode/asynclook.c index 170a1db08..8c8f79098 100644 --- a/testcode/asynclook.c +++ b/testcode/asynclook.c @@ -128,8 +128,13 @@ checkerr(const char* desc, int err) } } +#if !defined(HAVE_PTHREAD) && !defined(HAVE_SOLARIS_THREADS) +/** only one process can communicate with async worker */ +#define NUMTHR 1 +#else /* have threads */ /** number of threads to make in extended test */ #define NUMTHR 10 +#endif /** struct for extended thread info */ struct ext_thr_info { -- 2.47.2