From b47a323f09f1f9ccece03ca4d84dbe7a47ff8177 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Oct 2019 10:02:23 +0200 Subject: Move global mutex shards to context --- libbuild2/module.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libbuild2/module.cxx') diff --git a/libbuild2/module.cxx b/libbuild2/module.cxx index b5914cd..11e0b4f 100644 --- a/libbuild2/module.cxx +++ b/libbuild2/module.cxx @@ -156,6 +156,7 @@ namespace build2 // ctx.module_context_storage->reset ( new context (ctx.sched, + ctx.mutex_shards, false, /* dry_run */ ctx.keep_going, ctx.global_var_overrides, /* cmd_vars */ @@ -488,8 +489,8 @@ namespace build2 } } - // Note: pattern-typed in context.cxx:reset() as project-visibility - // variables of type bool. + // Note: pattern-typed in context ctor as project-visibility variables of + // type bool. // // We call the variable 'loaded' rather than 'inited' because it is // buildfile-visible (where we use the term "load a module"; see the note -- cgit v1.1