aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/target.ixx')
-rw-r--r--libbuild2/target.ixx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/target.ixx b/libbuild2/target.ixx
index 899e829..3f005c3 100644
--- a/libbuild2/target.ixx
+++ b/libbuild2/target.ixx
@@ -235,13 +235,13 @@ namespace build2
}
inline bool target::
- matched (action a) const
+ matched (action a, memory_order mo) const
{
assert (ctx.phase == run_phase::match ||
ctx.phase == run_phase::execute);
const opstate& s (state[a]);
- size_t c (s.task_count.load (memory_order_relaxed) - ctx.count_base ());
+ size_t c (s.task_count.load (mo) - ctx.count_base ());
if (ctx.phase == run_phase::match)
{