summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorMark Donszelmann <Mark.Donszelmann@gmail.com>2007-07-20 14:38:15 +0000
committerMark Donszelmann <Mark.Donszelmann@gmail.com>2007-07-20 14:38:15 +0000
commit71865c906c1f83b6516ce9d4fb54bbc347966a7f (patch)
tree6ac94f31f482476e7e79ceddc0d37a4c2fb70a3c /src/net
parent5da433aabdb16cf551091765468c6d7de38acfee (diff)
downloadcpptasks-parallel-71865c906c1f83b6516ce9d4fb54bbc347966a7f.tar.gz
cpptasks-parallel-71865c906c1f83b6516ce9d4fb54bbc347966a7f.tar.bz2
cpptasks-parallel-71865c906c1f83b6516ce9d4fb54bbc347966a7f.tar.xz
cpptasks-parallel-71865c906c1f83b6516ce9d4fb54bbc347966a7f.zip
Added more info on core
Diffstat (limited to 'src/net')
-rw-r--r--src/net/sf/antcontrib/cpptasks/CCTask.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/net/sf/antcontrib/cpptasks/CCTask.java b/src/net/sf/antcontrib/cpptasks/CCTask.java
index b6c424f..5116ee7 100644
--- a/src/net/sf/antcontrib/cpptasks/CCTask.java
+++ b/src/net/sf/antcontrib/cpptasks/CCTask.java
@@ -767,7 +767,7 @@ public class CCTask extends Task {
// setup cores/cpus
Core[] cores = new Core[noOfCores];
for (int j = 0; j < cores.length; j++) {
- cores[j] = new Core(this, config, _objDir, sourceFiles[j],
+ cores[j] = new Core(this, j, config, _objDir, sourceFiles[j],
relentless, monitor);
log("\nStarting Core " + j + " with "
+ sourceFiles[j].size() + " source files...");
@@ -927,16 +927,18 @@ public class CCTask extends Task {
// BEGINFREEHEP
class Core extends Thread {
+ private CCTask task;
private CompilerConfiguration config;
private File objDir;
private Set sourceFiles;
private boolean relentless;
private CCTaskProgressMonitor monitor;
private Exception compileException;
- private CCTask task;
- Core(CCTask task, CompilerConfiguration config, File objDir, Set set,
- boolean relentless, CCTaskProgressMonitor monitor) {
+ Core(CCTask task, int coreNo, CompilerConfiguration config, File objDir,
+ Set set, boolean relentless,
+ CCTaskProgressMonitor monitor) {
+ super("Core "+coreNo);
this.task = task;
this.config = config;
this.objDir = objDir;