From f79a7e2cc674cae223e7a2df03aaad47978761e7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 12 Oct 2017 18:49:48 +0300 Subject: Make scheduler threads inherit stack size from main thread --- build2/scheduler.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build2/scheduler.hxx') diff --git a/build2/scheduler.hxx b/build2/scheduler.hxx index 70dbf04..f79ca3e 100644 --- a/build2/scheduler.hxx +++ b/build2/scheduler.hxx @@ -326,9 +326,12 @@ namespace build2 create_helper (lock&); // We restrict ourselves to a single pointer as an argument in hope of - // a small object optimization. + // a small object optimization. Return NULL. // - static void + // Note that the return type is void* to make the function usable with + // pthreads (see scheduler.cxx for details). + // + static void* helper (void*); size_t -- cgit v1.1