aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/module.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-22 10:02:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-22 10:17:41 +0200
commitb47a323f09f1f9ccece03ca4d84dbe7a47ff8177 (patch)
tree7c520e5878b1988425520424c5e372f7439636d9 /libbuild2/module.cxx
parent1bbd6bdb1bbf6783aefd10392e5c0599318a927f (diff)
Move global mutex shards to context
Diffstat (limited to 'libbuild2/module.cxx')
-rw-r--r--libbuild2/module.cxx5
1 files changed, 3 insertions, 2 deletions
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