aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-25 09:00:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-25 09:00:12 +0200
commita17b6b40510b8ec5ca18dd5203e4b229aa6fee8a (patch)
treefccf8e19b16775cbcf714a19a386bdc86ef1ec05 /libbuild2/algorithm.hxx
parent3875999b2642013dfddd6cb1fa7b3ee7ac14f9d7 (diff)
Add more instrumentation for unassigned path race
Diffstat (limited to 'libbuild2/algorithm.hxx')
-rw-r--r--libbuild2/algorithm.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbuild2/algorithm.hxx b/libbuild2/algorithm.hxx
index de09469..33bc624 100644
--- a/libbuild2/algorithm.hxx
+++ b/libbuild2/algorithm.hxx
@@ -287,8 +287,8 @@ namespace build2
// If it is unmatch::unchanged then only unmatch the target if it is known
// to be unchanged after match. If it is unmatch::safe, then unmatch the
// target if it is safe (this includes unchanged or if we know that someone
- // else will execute this target). Return true if unmatch succeeded. Always
- // throw if failed.
+ // else will execute this target). Return true in first half of the pair if
+ // unmatch succeeded. Always throw if failed.
//
enum class unmatch {none, unchanged, safe};
@@ -298,7 +298,7 @@ namespace build2
pair<bool, target_state>
try_match (action, const target&, bool fail = true);
- bool
+ pair<bool, target_state>
match (action, const target&, unmatch);
// Start asynchronous match. Return target_state::postponed if the
@@ -337,7 +337,7 @@ namespace build2
target_state
match_inner (action, const target&);
- bool
+ pair<bool, target_state>
match_inner (action, const target&, unmatch);
// The standard prerequisite search and match implementations. They call