diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-23 14:54:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-23 14:54:53 +0200 |
commit | 92dd62e0e565f177ab5861a9511bc0e303f61a79 (patch) | |
tree | 6ce394a50f60fa148336dfac5fb1bda46bd79e85 /libbuild2/operation.cxx | |
parent | 542ad9696f50e33fa20e735c14c052720c55bc3a (diff) |
scheduler
Diffstat (limited to 'libbuild2/operation.cxx')
-rw-r--r-- | libbuild2/operation.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libbuild2/operation.cxx b/libbuild2/operation.cxx index 080123e..c07d359 100644 --- a/libbuild2/operation.cxx +++ b/libbuild2/operation.cxx @@ -151,7 +151,7 @@ namespace build2 what = " targets to " + diag_do (ctx, a); - mg = sched.monitor ( + mg = ctx.sched.monitor ( ctx.target_count, incr, [incr, &what] (size_t c) -> size_t @@ -274,9 +274,9 @@ namespace build2 // switch (ctx.current_inner_oif->concurrency) { - case 0: sched.tune (1); break; // Run serially. - case 1: break; // Run as is. - default: assert (false); // Not yet supported. + case 0: ctx.sched.tune (1); break; // Run serially. + case 1: break; // Run as is. + default: assert (false); // Not yet supported. } phase_lock pl (ctx, run_phase::execute); // Never switched. @@ -299,7 +299,7 @@ namespace build2 { what = "% of targets " + diag_did (ctx, a); - mg = sched.monitor ( + mg = ctx.sched.monitor ( ctx.target_count, init - incr, [init, incr, &what, &ctx] (size_t c) -> size_t @@ -352,7 +352,7 @@ namespace build2 // We are now running serially. // - sched.tune (0); // Restore original scheduler settings. + ctx.sched.tune (0); // Restore original scheduler settings. // Clear the dry-run flag. // |