aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-09-19 14:17:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-09-19 14:17:10 +0200
commit58e495733d402bb4e97238ae6c8e8344eb4b2161 (patch)
tree914e20c16f349ab4d41b78d8f55e43ef0735f171 /libbuild2/algorithm.hxx
parent47ae21f6558f81ae7c13d143d297f61acae2b530 (diff)
Add target_lock::first to distinguish first lock of target
Diffstat (limited to 'libbuild2/algorithm.hxx')
-rw-r--r--libbuild2/algorithm.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/algorithm.hxx b/libbuild2/algorithm.hxx
index b7f6809..e558d3a 100644
--- a/libbuild2/algorithm.hxx
+++ b/libbuild2/algorithm.hxx
@@ -191,6 +191,7 @@ namespace build2
action_type action;
target_type* target = nullptr;
size_t offset = 0;
+ bool first;
explicit operator bool () const {return target != nullptr;}
@@ -209,13 +210,14 @@ namespace build2
// Implementation details.
//
~target_lock ();
- target_lock (action_type, target_type*, size_t);
+ target_lock (action_type, target_type*, size_t, bool);
struct data
{
action_type action;
target_type* target;
size_t offset;
+ bool first;
};
data