final int threadID = i;
threads[i] = new Thread() {
public void run() {
ModuleName moduleName = ModuleName.make("TempModule" + threadID);
MessageLogger messageLogger = new MessageLogger();
workspaceManager.makeModule(new SourceModelModuleSource(SourceModelUtilities.TextParsing.parseModuleDefnIntoSourceModel("module " + moduleName + "; import " + CAL_Prelude.MODULE_NAME + "; public foo x = (\\y -> x + x + y) 3.0; public bar = foo;")), messageLogger);
if (messageLogger.getNErrors() > 0) {
multithreadedAssertEquals("No compilation errors", messageLogger.toString(), assertList);
} else {
for (int k = 0; k < numDependentModules; k++) {
String moduleName2 = "TempModule" + threadID + "_" + k;
workspaceManager.makeModule(new SourceModelModuleSource(SourceModelUtilities.TextParsing.parseModuleDefnIntoSourceModel("module " + moduleName2 + "; import " + CAL_Prelude.MODULE_NAME + "; import " + moduleName + ";")), messageLogger);
}
if (messageLogger.getNErrors() > 0) {
multithreadedAssertEquals("No compilation errors", messageLogger.toString(), assertList);
} else {
for (int j = 0; j < numCompilationsPerThread; j++) {