aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-02-07 07:20:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-02-07 07:22:27 +0200
commit9699e205dc55a9e2de18f56aabad8feb46613b1f (patch)
tree1eddadc94242e530f8d53a75c53be0f8ab321c2a /libbuild2/algorithm.ixx
parent6c1ea91ca421a1b899af091043abdb58c2ed57e0 (diff)
Make match_inc_dependents() part of public API
Diffstat (limited to 'libbuild2/algorithm.ixx')
-rw-r--r--libbuild2/algorithm.ixx8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbuild2/algorithm.ixx b/libbuild2/algorithm.ixx
index 264a162..bdf0815 100644
--- a/libbuild2/algorithm.ixx
+++ b/libbuild2/algorithm.ixx
@@ -375,7 +375,7 @@ namespace build2
match (action, const target&, size_t, atomic_count*, bool try_match = false);
inline void
- match_inc_dependens (action a, const target& t)
+ match_inc_dependents (action a, const target& t)
{
t.ctx.dependency_count.fetch_add (1, memory_order_relaxed);
t[a].dependents.fetch_add (1, memory_order_release);
@@ -389,7 +389,7 @@ namespace build2
target_state r (match (a, t, 0, nullptr).second);
if (r != target_state::failed)
- match_inc_dependens (a, t);
+ match_inc_dependents (a, t);
else if (fail)
throw failed ();
@@ -407,7 +407,7 @@ namespace build2
if (r.first)
{
if (r.second != target_state::failed)
- match_inc_dependens (a, t);
+ match_inc_dependents (a, t);
else if (fail)
throw failed ();
}
@@ -454,7 +454,7 @@ namespace build2
}
}
- match_inc_dependens (a, t);
+ match_inc_dependents (a, t);
return make_pair (false, s);;
}