diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/kit/threads.posix.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source/kit/threads.posix.c b/source/kit/threads.posix.c index 2dea666..c9a9094 100644 --- a/source/kit/threads.posix.c +++ b/source/kit/threads.posix.c @@ -43,8 +43,6 @@ # include "allocator.h" # include "threads.h" -# include <stdio.h> - /* Configuration macro: @@ -249,12 +247,8 @@ int thrd_create_with_stack(thrd_t *thr, thrd_start_t func, void *arg, page_size - delta; if (pthread_attr_init(&attr) != 0) return thrd_nomem; - if (pthread_attr_setstacksize(&attr, (size_t) stack_size) != 0) { - printf("pthread_attr_setstacksize failed.\n"); - printf(" page size %d\n", (int) page_size); - printf(" stack size %d\n", (int) stack_size); + if (pthread_attr_setstacksize(&attr, (size_t) stack_size) != 0) return thrd_wrong_stack_size; - } attr_p = &attr; } kit_allocator_t alloc = kit_alloc_default(); |