aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/scheduler.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-04-13 13:14:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-04-13 13:14:35 +0200
commite9a3804c2ea5972dd84a7d4759d4ea965c2490fb (patch)
tree89f6eeaf50486213f8de898d55fefeea080e54f2 /libbuild2/scheduler.hxx
parent1308eb0d740a687161641d52dabad8c0f849db08 (diff)
Various minor generalizations for in-process configure support in bpkg
Diffstat (limited to 'libbuild2/scheduler.hxx')
-rw-r--r--libbuild2/scheduler.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbuild2/scheduler.hxx b/libbuild2/scheduler.hxx
index b579d80..dcddfcc 100644
--- a/libbuild2/scheduler.hxx
+++ b/libbuild2/scheduler.hxx
@@ -358,6 +358,9 @@ namespace build2
size_t
tune (size_t max_active);
+ bool
+ tuned () const {return max_active_ != orig_max_active_;}
+
struct tune_guard
{
tune_guard (): s_ (nullptr), o_ (0) {}