From 3074c5e1409ad49c0793db6384ecbc6ac4ed33a9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 11 Dec 2020 07:07:36 +0200 Subject: Add search_locked() versions of search() functions --- libbuild2/search.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libbuild2/search.hxx') 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 + create_new_target_locked (context&, const prerequisite_key&); } #endif // LIBBUILD2_SEARCH_HXX -- cgit v1.1