diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-12-12 11:30:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-12-12 11:30:27 +0200 |
commit | d27390e9935c94938af9e7068557d6f6ef9b07a9 (patch) | |
tree | 2c27fc4e49e51d90ea246607160d8b2790973693 /libbuild2/context.cxx | |
parent | 270041729e2d2f67d15e419e314cda4eba9821f6 (diff) |
Increment load_generation between operations in batch
Diffstat (limited to 'libbuild2/context.cxx')
-rw-r--r-- | libbuild2/context.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx index 6e4fd6f..31d218b 100644 --- a/libbuild2/context.cxx +++ b/libbuild2/context.cxx @@ -1061,6 +1061,13 @@ namespace build2 return r ? optional<bool> (s) : nullopt; } + bool run_phase_mutex:: + unlocked () const + { + mlock l (m_); + return lc_ == 0 && mc_ == 0 && ec_ == 0; + } + // C++17 deprecated uncaught_exception() so use uncaught_exceptions() if // available. // |