aboutsummaryrefslogtreecommitdiff
path: root/build2/scheduler.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-31 10:10:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:42:41 +0200
commitb9262da995ed8f9529496e422c6c0344730b3707 (patch)
tree0f17b80a2d8fe30af33e2cb82aa04cb677041691 /build2/scheduler.cxx
parentf519c44792429ce52cfab09898701bff9c202770 (diff)
Fix bug in scheduler::tune()
Diffstat (limited to 'build2/scheduler.cxx')
-rw-r--r--build2/scheduler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/scheduler.cxx b/build2/scheduler.cxx
index 9abafbb..da49ffd 100644
--- a/build2/scheduler.cxx
+++ b/build2/scheduler.cxx
@@ -217,7 +217,7 @@ namespace build2
{
lock l (mutex_);
- if (max_active)
+ if (max_active == 0)
max_active = orig_max_active_;
assert (max_active >= init_active_ &&