diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-10-29 15:12:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-10-29 15:12:18 +0200 |
commit | 042a541b08d306e846085fa1ca42d533a6f61734 (patch) | |
tree | b4fc4abc577bef77952c23d8dc014685a70ed473 /libbuild2/target.hxx | |
parent | 653748e3673f515c2ceabe9ef2d57ba087abeb7a (diff) |
Tweak some more fix for data race in ad hoc member state when group is postponed
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r-- | libbuild2/target.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index 72d6dbc..ae45082 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -957,10 +957,9 @@ namespace build2 // // Note that it is undetermined until a rule is matched and recipe // applied (see set_recipe()). However, we need it to be not postponed - // for ad hoc members that are not matched (see group_state()) so - // initialize it to unknown. + // for ad hoc members that are not matched (see group_state()). // - target_state state = target_state::unknown; + target_state state = target_state::uninitialized; // Set to true (only for the inner action) if this target has been // matched but not executed as a result of the resolve_members() call. |