From ac838a3c051e8f15514f0454b060d00695b372f7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Apr 2019 10:33:59 +0200 Subject: Add dry-run support to test rules --- build2/context.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build2/context.hxx') diff --git a/build2/context.hxx b/build2/context.hxx index 567786d..a8d6833 100644 --- a/build2/context.hxx +++ b/build2/context.hxx @@ -240,6 +240,8 @@ namespace build2 { ~wait_guard () noexcept (false); + wait_guard (); // Empty. + explicit wait_guard (atomic_count& task_count, bool phase = false); @@ -251,6 +253,14 @@ namespace build2 void wait (); + // Note: move-assignable to empty only. + // + wait_guard (wait_guard&&); + wait_guard& operator= (wait_guard&&); + + wait_guard (const wait_guard&) = delete; + wait_guard& operator= (const wait_guard&) = delete; + size_t start_count; atomic_count* task_count; bool phase; -- cgit v1.1