aboutsummaryrefslogtreecommitdiff
path: root/build2/scheduler.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-02-03 09:29:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:42:41 +0200
commit0e4b975073a787ce3e5450173cf407a71bafd3a4 (patch)
tree7a810b6d108f4bce8659965a0dfebd6bd0b7f093 /build2/scheduler.txx
parent21c5af3dc018ec1f2218a3df3c8195cfcfe3aefa (diff)
Use less-than test for start count in scheduler
Diffstat (limited to 'build2/scheduler.txx')
-rw-r--r--build2/scheduler.txx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/scheduler.txx b/build2/scheduler.txx
index 965813f..01408ca 100644
--- a/build2/scheduler.txx
+++ b/build2/scheduler.txx
@@ -86,7 +86,7 @@ namespace build2
t.thunk (std::index_sequence_for<A...> ());
atomic_count& tc (*t.task_count);
- if (--tc == t.start_count)
+ if (--tc <= t.start_count)
s.resume (tc); // Resume a waiter, if any.
}
}