From 35ff0ce2ea1801d5c42566b13d2e3a68452f6f3e Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 11 Dec 2006 23:46:52 +0100 Subject: [PATCH] Updated various programs and Makefiles to use the threading infrastructure. --- images/image-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++) { -- 2.39.5