aboutsummaryrefslogtreecommitdiff
path: root/build2/variable
diff options
context:
space:
mode:
Diffstat (limited to 'build2/variable')
-rw-r--r--build2/variable8
1 files changed, 6 insertions, 2 deletions
diff --git a/build2/variable b/build2/variable
index af7cbef..690c45d 100644
--- a/build2/variable
+++ b/build2/variable
@@ -898,10 +898,14 @@ namespace build2
variable_pool (): variable_pool (false) {}
- // Proof of lock for RW access.
+ // RW access.
//
variable_pool&
- rw (const ulock&) const {return const_cast<variable_pool&> (*this);}
+ rw () const
+ {
+ assert (phase == run_phase::load);
+ return const_cast<variable_pool&> (*this);
+ }
variable_pool&
rw (scope&) const {return const_cast<variable_pool&> (*this);}