aboutsummaryrefslogtreecommitdiff
path: root/build2/scheduler.txx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/scheduler.txx')
-rw-r--r--build2/scheduler.txx6
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/scheduler.txx b/build2/scheduler.txx
index 01408ca..d5e9afa 100644
--- a/build2/scheduler.txx
+++ b/build2/scheduler.txx
@@ -7,7 +7,7 @@
namespace build2
{
template <typename F, typename... A>
- void scheduler::
+ bool scheduler::
async (size_t start_count, atomic_count& task_count, F&& f, A&&... a)
{
using task = task_type<F, A...>;
@@ -56,7 +56,7 @@ namespace build2
if (td == nullptr)
{
forward<F> (f) (forward<A> (a)...);
- return;
+ return false;
}
// Increment the task count.
@@ -70,6 +70,8 @@ namespace build2
//
if (active_ < max_active_)
activate_helper (l);
+
+ return true;
}
template <typename F, typename... A>