diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-09-19 14:17:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-09-19 14:17:10 +0200 |
commit | 58e495733d402bb4e97238ae6c8e8344eb4b2161 (patch) | |
tree | 914e20c16f349ab4d41b78d8f55e43ef0735f171 /libbuild2/algorithm.ixx | |
parent | 47ae21f6558f81ae7c13d143d297f61acae2b530 (diff) |
Add target_lock::first to distinguish first lock of target
Diffstat (limited to 'libbuild2/algorithm.ixx')
-rw-r--r-- | libbuild2/algorithm.ixx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbuild2/algorithm.ixx b/libbuild2/algorithm.ixx index 8fc5390..417a10e 100644 --- a/libbuild2/algorithm.ixx +++ b/libbuild2/algorithm.ixx @@ -220,8 +220,8 @@ namespace build2 unlock_impl (action, target&, size_t); inline target_lock:: - target_lock (action_type a, target_type* t, size_t o) - : action (a), target (t), offset (o) + target_lock (action_type a, target_type* t, size_t o, bool f) + : action (a), target (t), offset (o), first (f) { if (target != nullptr) prev = stack (this); @@ -260,7 +260,7 @@ namespace build2 inline auto target_lock:: release () -> data { - data r {action, target, offset}; + data r {action, target, offset, first}; if (target != nullptr) { |