aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/operation.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/build2/operation.cxx b/build2/operation.cxx
index 0ade4bb..6e8511d 100644
--- a/build2/operation.cxx
+++ b/build2/operation.cxx
@@ -94,6 +94,9 @@ namespace build2
{
phase_guard pg (run_phase::search_match);
+ if (ts.size () > 1)
+ sched.tune (1); //@@ MT TMP run serially.
+
scheduler::atomic_count task_count (0);
{
model_slock ml;
@@ -113,6 +116,8 @@ namespace build2
}
}
sched.wait (task_count);
+
+ sched.tune (0); //@@ MT TMP run serially restore.
}
if (verb >= 6)