aboutsummaryrefslogtreecommitdiff
path: root/build2/variable
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-02-15 03:55:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-02 14:03:34 +0200
commitb37f1aa6398065be806e6605a023189685669885 (patch)
treeb9b32091e3d70a31852302b24c99ecb62465464a /build2/variable
parenta64b2ae2099346471ead988d5f2d383d55a9bf89 (diff)
Implement parallel match
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);}