X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fsorter%2Farray.c;h=819898a3c15a7f8302bb3196da2cc6233ce2a2aa;hb=6efdc514c193f18c9ef840096750c37e78a01bf6;hp=4c733aa346a53e70daa0af682377411e10db5239;hpb=031256ad2e123eec58521f8e3eb9496c197641d2;p=libucw.git diff --git a/ucw/sorter/array.c b/ucw/sorter/array.c index 4c733aa3..819898a3 100644 --- a/ucw/sorter/array.c +++ b/ucw/sorter/array.c @@ -9,8 +9,8 @@ #undef LOCAL_DEBUG -#include "ucw/lib.h" -#include "ucw/sorter/common.h" +#include +#include #include #include @@ -67,9 +67,9 @@ asort_radix(struct asort_context *ctx, void *array, void *buffer, uns num_elts, #ifdef CONFIG_UCW_THREADS -#include "ucw/threads.h" -#include "ucw/workqueue.h" -#include "ucw/eltpool.h" +#include +#include +#include static uns asort_threads_use_count; static uns asort_threads_ready; @@ -93,7 +93,7 @@ asort_start_threads(uns run) { // XXX: If somebody overrides the radix-sorter parameters to insane values, // he also should override the stack size to insane values. - asort_thread_pool.stack_size = default_thread_stack_size + rs_estimate_stack(); + asort_thread_pool.stack_size = ucwlib_thread_stack_size + rs_estimate_stack(); asort_thread_pool.num_threads = sorter_threads; ASORT_TRACE("Initializing thread pool (%d threads, %dK stack)", sorter_threads, asort_thread_pool.stack_size >> 10); worker_pool_init(&asort_thread_pool);