aboutsummaryrefslogtreecommitdiff
path: root/build2/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-04-09 10:33:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-04-09 10:33:59 +0200
commitac838a3c051e8f15514f0454b060d00695b372f7 (patch)
tree368cbd8f885c25f5e5fc4c5f914434ef2839fa8e /build2/context.hxx
parent79a760af92146a63e337c4399ec57134f56d8886 (diff)
Add dry-run support to test rules
Diffstat (limited to 'build2/context.hxx')
-rw-r--r--build2/context.hxx10
1 files changed, 10 insertions, 0 deletions
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;