aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/context.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/context.cxx')
-rw-r--r--libbuild2/context.cxx7
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.
//