let with_timing report overall number of threads;
authorwenzelm
Sat, 04 Aug 2012 17:26:30 +0200
changeset 48673 b2b09970c571
parent 48672 9bc7922ba2ae
child 48674 03e88e4619a2
let with_timing report overall number of threads;
src/Pure/System/build.ML
--- a/src/Pure/System/build.ML	Sat Aug 04 17:06:55 2012 +0200
+++ b/src/Pure/System/build.ML	Sat Aug 04 17:26:30 2012 +0200
@@ -76,7 +76,12 @@
           (Options.string options "document_dump",
             Present.dump_mode (Options.string options "document_dump_mode"))
           "" verbose;
-      val _ = Session.with_timing name verbose (List.app use_theories) theories;
+      val _ =
+        theories |>
+          (List.app use_theories
+            |> Session.with_timing name verbose
+            |> Unsynchronized.setmp Multithreading.max_threads (Options.int options "threads"));
+
       val _ = Session.finish ();
       val _ = if do_output then () else quit ();
     in () end) ()) ()