src/Pure/Thy/thy_info.scala
changeset 51298 ec7f10155389
parent 51294 0850d43cb355
child 54515 570ba266f5b5
--- a/src/Pure/Thy/thy_info.scala	Wed Feb 27 19:39:16 2013 +0100
+++ b/src/Pure/Thy/thy_info.scala	Wed Feb 27 20:36:21 2013 +0100
@@ -65,10 +65,13 @@
 
     def load_files: List[Path] =
     {
-      // FIXME par.map (!?)
-      ((Nil: List[Path]) /: rev_deps) {
-        case (files, dep) =>
-          dep.load_files(syntax).map(a => Path.explode(dep.name.dir) + Path.explode(a)) ::: files
+      val dep_files =
+        rev_deps.par.map(dep =>
+          Exn.capture {
+            dep.load_files(syntax).map(a => Path.explode(dep.name.dir) + Path.explode(a))
+          }).toList
+      ((Nil: List[Path]) /: dep_files) {
+        case (acc_files, files) => Exn.release(files) ::: acc_files
       }
     }
   }