diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-04-05 08:07:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-04-05 08:07:47 +0200 |
commit | 2905180c48e4b8974d4dee1949a00fc8e7bcafc6 (patch) | |
tree | 0dde0185bcbe36da05200c64ab12bb3b9af528c6 /libbuild2/variable.cxx | |
parent | 8b9701d2ad76a9a571c445b318557261a4922758 (diff) |
Allow creating context with bare minimum of initializations
This is used by bpkg to detect forwarded configurations without incurring
the full context creation overhead.
Diffstat (limited to 'libbuild2/variable.cxx')
-rw-r--r-- | libbuild2/variable.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/variable.cxx b/libbuild2/variable.cxx index d55737b..8c52e22 100644 --- a/libbuild2/variable.cxx +++ b/libbuild2/variable.cxx @@ -369,8 +369,8 @@ namespace build2 // Typification is kind of like caching so we reuse that mutex shard. // shared_mutex& m ( - ctx.mutexes.variable_cache[ - hash<value*> () (&v) % ctx.mutexes.variable_cache_size]); + ctx.mutexes->variable_cache[ + hash<value*> () (&v) % ctx.mutexes->variable_cache_size]); // Note: v.type is rechecked by typify() under lock. // |