aboutsummaryrefslogtreecommitdiff
path: root/build2/scheduler.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-10-12 18:49:48 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2017-10-13 10:28:25 +0200
commitf79a7e2cc674cae223e7a2df03aaad47978761e7 (patch)
treeddd852f68210abf24da5cee05a3836e00adbb8e6 /build2/scheduler.hxx
parent28e325f0bd58bf11bd66997fff041d46b89b1cf1 (diff)
Make scheduler threads inherit stack size from main thread
Diffstat (limited to 'build2/scheduler.hxx')
-rw-r--r--build2/scheduler.hxx7
1 files changed, 5 insertions, 2 deletions
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