aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/scheduler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/scheduler.cxx')
-rw-r--r--libbuild2/scheduler.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/scheduler.cxx b/libbuild2/scheduler.cxx
index 03842ec..deb5399 100644
--- a/libbuild2/scheduler.cxx
+++ b/libbuild2/scheduler.cxx
@@ -198,7 +198,7 @@ namespace build2
size_t d (max_active_ - active_);
if (n == 0 || d < n)
n = d;
- active_ -= n;
+ active_ += n;
return n;
}
else
@@ -212,7 +212,7 @@ namespace build2
return;
lock l (mutex_);
- active_ += n;
+ active_ -= n;
}
size_t scheduler::