From 88379eedeae654391711d8cdda17dfc2be6367ef Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 12 May 2021 10:46:21 +0200 Subject: Keep phase locked while working own queue --- libbuild2/context.hxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libbuild2/context.hxx') diff --git a/libbuild2/context.hxx b/libbuild2/context.hxx index 0d401de..ad89f58 100644 --- a/libbuild2/context.hxx +++ b/libbuild2/context.hxx @@ -594,10 +594,14 @@ namespace build2 // struct LIBBUILD2_SYMEXPORT phase_unlock { - phase_unlock (context&, bool unlock = true); + phase_unlock (context&, bool unlock = true, bool delay = false); ~phase_unlock () noexcept (false); - phase_lock* l; + void + unlock (); + + context* ctx; + phase_lock* lock; }; // Assuming we have a lock on the current phase, temporarily switch to a -- cgit v1.1