aboutsummaryrefslogtreecommitdiff
path: root/build2/target
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-03 10:05:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-03 10:05:16 +0200
commitbcb5045dff9e87decbad3a785eb1fe42f4fc1410 (patch)
treed5ed2b39f3704e28f0707b61cd50114cfe775d4c /build2/target
parent2069cbb8f72bceb0fcb968ba05968a24eeb0c15d (diff)
Use final action state after match at top level (operation)
Diffstat (limited to 'build2/target')
-rw-r--r--build2/target19
1 files changed, 13 insertions, 6 deletions
diff --git a/build2/target b/build2/target
index 563e32f..71571bc 100644
--- a/build2/target
+++ b/build2/target
@@ -453,19 +453,26 @@ namespace build2
mutable atomic_count task_count {0}; // Start offset_touched - 1.
- // This function can only be called during match if we have observed
+ // This function should only be called during match if we have observed
// (synchronization-wise) that the this target has been matched (i.e.,
- // the rule has been applied).
+ // the rule has been applied) for this action.
//
target_state
matched_state (action a, bool fail = true) const;
- // This function can only be called during execution if we have observed
- // (synchronization-wise) that this target has been executed.
+ // This function should only be called during execution if we have
+ // observed (synchronization-wise) that this target has been executed.
//
target_state
executed_state (bool fail = true) const;
+ // This function should only be called between match and execute while
+ // running serially. It returns the group state for the "final" action
+ // that has been matched (and that will be executed).
+ //
+ target_state
+ serial_state (bool fail = true) const;
+
// Number of direct targets that depend on this target in the current
// operation. It is incremented during match and then decremented during
// execution, before running the recipe. As a result, the recipe can
@@ -481,8 +488,8 @@ namespace build2
target_state
state () const;
- // Version that should be used during search & match after the target has
- // been matched for this action (see the recipe override).
+ // Version that should be used during match after the target has been
+ // matched for this action (see the recipe override).
//
target_state
state (action a) const;