init_workers(wq, thcnt);
if ((work_threads = (pthread_t *)malloc(sizeof(pthread_t) * thcnt)) == NULL)
- do_error(_("cannot malloc %ld bytes for work_threads array\n"),
+ do_error(_("cannot malloc %ld bytes for work_threads array\n"),
sizeof(pthread_t) * thcnt);
/*
thread_init(void)
{
int status;
- size_t stacksize;
pthread_attr_t attr;
sigset_t blocked;
if ((status = pthread_attr_init(&attr)) != 0)
do_error(_("status from pthread_attr_init: %d"),status);
- if ((status = pthread_attr_getstacksize(&attr, &stacksize)) != 0)
- do_error(_("status from pthread_attr_getstacksize: %d"), status);
-
- stacksize *= 4;
-
- if ((status = pthread_attr_setstacksize(&attr, stacksize)) != 0)
- do_error(_("status from pthread_attr_setstacksize: %d"), status);
-
if ((status = pthread_setconcurrency(thread_count)) != 0)
do_error(_("Status from pthread_setconcurrency(%d): %d"), thread_count, status);