From b37f1aa6398065be806e6605a023189685669885 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 15 Feb 2017 03:55:15 +0200 Subject: Implement parallel match --- build2/variable | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'build2/variable') 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 (*this);} + rw () const + { + assert (phase == run_phase::load); + return const_cast (*this); + } variable_pool& rw (scope&) const {return const_cast (*this);} -- cgit v1.1