From 0e4b975073a787ce3e5450173cf407a71bafd3a4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 3 Feb 2017 09:29:20 +0200 Subject: Use less-than test for start count in scheduler --- build2/scheduler.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/scheduler.txx') 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 ()); atomic_count& tc (*t.task_count); - if (--tc == t.start_count) + if (--tc <= t.start_count) s.resume (tc); // Resume a waiter, if any. } } -- cgit v1.1