From: Martin Mares Date: Mon, 11 Dec 2006 22:46:52 +0000 (+0100) Subject: Updated various programs and Makefiles to use the threading infrastructure. X-Git-Tag: holmes-import~507^2~11 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=35ff0ce2ea1801d5c42566b13d2e3a68452f6f3e;p=libucw.git Updated various programs and Makefiles to use the threading infrastructure. --- diff --git a/images/image-test.c b/images/image-test.c index b046672f..0a22d479 100644 --- a/images/image-test.c +++ b/images/image-test.c @@ -12,6 +12,7 @@ #include "lib/lib.h" #include "lib/mempool.h" #include "lib/fastbuf.h" +#include "lib/threads.h" #include "images/images.h" #include "images/color.h" @@ -192,7 +193,7 @@ test_threads(void) pthread_t threads[TEST_THREADS_COUNT - 1]; pthread_attr_t attr; if (pthread_attr_init(&attr) < 0 || - pthread_attr_setstacksize(&attr, 1 << 20) < 0) + pthread_attr_setstacksize(&attr, default_thread_stack_size) < 0) ASSERT(0); for (uns i = 0; i < TEST_THREADS_COUNT - 1; i++) {