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/function.test.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libbuild2/function.test.cxx') diff --git a/libbuild2/function.test.cxx b/libbuild2/function.test.cxx index bd0be62..c4f7fa2 100644 --- a/libbuild2/function.test.cxx +++ b/libbuild2/function.test.cxx @@ -42,8 +42,12 @@ namespace build2 // init_diag (1); init (nullptr, argv[0]); - scheduler sched (1); // Serial execution. - context ctx (sched); + + // Serial execution. + // + scheduler sched (1); + global_mutex_shards shards (1); + context ctx (sched, shards); auto& functions (ctx.functions); -- cgit v1.1