]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fix for nothreading.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 6 Feb 2008 10:09:54 +0000 (10:09 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 6 Feb 2008 10:09:54 +0000 (10:09 +0000)
git-svn-id: file:///svn/unbound/trunk@922 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
testcode/asynclook.c

index 084aae29f1c10d96fdce88ea1dc9348af9cd2c98..65a81cbeb996e29b7bff663aa791dc42520e32bc 100644 (file)
@@ -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
index 170a1db08803c009f09fd8371d8e87f8eb0d5263..8c8f79098459868648e214d3339edf9fb9232249 100644 (file)
@@ -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 {