aboutsummaryrefslogtreecommitdiff
path: root/build2/target.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-02-16 11:30:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-02-16 11:30:41 +0200
commit63d1d6f8f4bb6db482b21e728245ebf9eee6b55f (patch)
tree61f1b519a447fd2b96c877bfced4b9fc8363824e /build2/target.hxx
parentef12b3bf80e2eec3fcfd36cceee02f357a992039 (diff)
Fix group link-up race
Diffstat (limited to 'build2/target.hxx')
-rw-r--r--build2/target.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/build2/target.hxx b/build2/target.hxx
index 23213a2..e783ee4 100644
--- a/build2/target.hxx
+++ b/build2/target.hxx
@@ -252,8 +252,8 @@ namespace build2
}
public:
- // You should not call this function directly; rather use
- // resolve_group_members() from <build2/algorithm.hxx>.
+ // Normally you should not call this function directly and rather use
+ // resolve_members() from algorithm.hxx.
//
virtual group_view
group_members (action) const;
@@ -697,6 +697,9 @@ namespace build2
// also be traversed in reverse, but that's what you usually want,
// anyway.
//
+ // Note that you either should be iterating over a locked target (e.g., in
+ // rule's match() or apply()) or you should call resolve_group().
+ //
class group_prerequisites
{
public: