diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-27 18:40:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-27 18:40:52 +0200 |
commit | 566bcb8c4c36d12e398f00349c5f27cae06fa7a9 (patch) | |
tree | d7090693a6f13cf4995a24724675faa8a5582296 /build2/algorithm.cxx | |
parent | d14d3123c7cdb53a635d4be55902c09a410c28cc (diff) |
Implement displaying build progress (--progress|-p)
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r-- | build2/algorithm.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx index fe71d54..588980e 100644 --- a/build2/algorithm.cxx +++ b/build2/algorithm.cxx @@ -830,6 +830,8 @@ namespace build2 ts = t.recipe_ (a, t); + target_count.fetch_sub (1, memory_order_relaxed); + // See the recipe documentation for details on what's going on here. // Note that if the result is group, then the group's state can be // failed. @@ -876,8 +878,8 @@ namespace build2 // Update dependency counts and make sure they are not skew. // + size_t gd (dependency_count.fetch_sub (1, memory_order_relaxed)); size_t td (t.dependents.fetch_sub (1, memory_order_release)); - size_t gd (dependency_count.fetch_sub (1, memory_order_release)); assert (td != 0 && gd != 0); td--; |