aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/search.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-12-11 07:07:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-12-11 07:07:36 +0200
commit3074c5e1409ad49c0793db6384ecbc6ac4ed33a9 (patch)
tree256d707b43c3139fc7591d7ebd2a6c85456bc90b /libbuild2/search.hxx
parentb971493841a601041cac1f680e3828e8d223e6f2 (diff)
Add search_locked() versions of search() functions
Diffstat (limited to 'libbuild2/search.hxx')
-rw-r--r--libbuild2/search.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbuild2/search.hxx b/libbuild2/search.hxx
index e63d582..aa30648 100644
--- a/libbuild2/search.hxx
+++ b/libbuild2/search.hxx
@@ -34,6 +34,11 @@ namespace build2
//
LIBBUILD2_SYMEXPORT const target&
create_new_target (context&, const prerequisite_key&);
+
+ // As above but return the lock if the target was newly created.
+ //
+ LIBBUILD2_SYMEXPORT pair<target&, ulock>
+ create_new_target_locked (context&, const prerequisite_key&);
}
#endif // LIBBUILD2_SEARCH_HXX