pthread_t threads[TEST_THREADS_COUNT - 1];
pthread_attr_t attr;
if (pthread_attr_init(&attr) < 0 ||
- pthread_attr_setstacksize(&attr, default_thread_stack_size) < 0)
+ pthread_attr_setstacksize(&attr, ucwlib_thread_stack_size) < 0)
ASSERT(0);
for (uns i = 0; i < TEST_THREADS_COUNT - 1; i++)
{
{
// 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);
#include "ucw/threads.h"
#include "ucw/conf.h"
-uns default_thread_stack_size = 65556;
+uns ucwlib_thread_stack_size = 65556;
static struct cf_section threads_config = {
CF_ITEMS {
- CF_UNS("DefaultStackSize", &default_thread_stack_size),
+ CF_UNS("DefaultStackSize", &ucwlib_thread_stack_size),
CF_END
}
};
#ifdef CONFIG_UCW_THREADS
-extern uns default_thread_stack_size;
+extern uns ucwlib_thread_stack_size;
#endif
pthread_attr_t attr;
if (pthread_attr_init(&attr) < 0 ||
- pthread_attr_setstacksize(&attr, p->stack_size ? : default_thread_stack_size) < 0)
+ pthread_attr_setstacksize(&attr, p->stack_size ? : ucwlib_thread_stack_size) < 0)
ASSERT(0);
for (uns i=0; i < p->num_threads; i++)