From a17b6b40510b8ec5ca18dd5203e4b229aa6fee8a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 25 Jun 2020 09:00:12 +0200 Subject: Add more instrumentation for unassigned path race --- libbuild2/algorithm.ixx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libbuild2/algorithm.ixx') diff --git a/libbuild2/algorithm.ixx b/libbuild2/algorithm.ixx index 5f9143a..d75ad16 100644 --- a/libbuild2/algorithm.ixx +++ b/libbuild2/algorithm.ixx @@ -312,7 +312,7 @@ namespace build2 return r; } - inline bool + inline pair match (action a, const target& t, unmatch um) { assert (t.ctx.phase == run_phase::match); @@ -328,7 +328,7 @@ namespace build2 case unmatch::unchanged: { if (s == target_state::unchanged) - return true; + return make_pair (true, s); break; } @@ -340,14 +340,14 @@ namespace build2 // if (s == target_state::unchanged || t[a].dependents.load (memory_order_consume) != 0) - return true; + return make_pair (true, s); break; } } match_inc_dependens (a, t); - return false; + return make_pair (false, s);; } inline target_state @@ -437,7 +437,7 @@ namespace build2 return match (a.inner_action (), t); } - inline bool + inline pair match_inner (action a, const target& t, unmatch um) { assert (a.outer ()); -- cgit v1.1