diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-22 10:02:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-22 10:17:41 +0200 |
commit | b47a323f09f1f9ccece03ca4d84dbe7a47ff8177 (patch) | |
tree | 7c520e5878b1988425520424c5e372f7439636d9 /libbuild2/function.test.cxx | |
parent | 1bbd6bdb1bbf6783aefd10392e5c0599318a927f (diff) |
Move global mutex shards to context
Diffstat (limited to 'libbuild2/function.test.cxx')
-rw-r--r-- | libbuild2/function.test.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
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); |