aboutsummaryrefslogtreecommitdiff
path: root/build2/context.hxx
diff options
context:
space:
mode:
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;