aboutsummaryrefslogtreecommitdiff
path: root/src/SelfIvyClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/SelfIvyClient.java')
-rw-r--r--src/SelfIvyClient.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/SelfIvyClient.java b/src/SelfIvyClient.java
index bd06ee1..2751c92 100644
--- a/src/SelfIvyClient.java
+++ b/src/SelfIvyClient.java
@@ -192,13 +192,16 @@ public class SelfIvyClient extends IvyClient {
this.cb=cb;
this.c=c;
args=a;
- t=new Thread(Runner.this);
- bus.registerThread(t);
- t.setName("Ivy Runner Thread to execute an async callback");
- t.start();
- bus.unRegisterThread(t);
+ //t=new Thread(Runner.this);
+ //bus.registerThread(t);
+ //t.start();
+ bus.getPool().execute(Runner.this);
+ //bus.unRegisterThread(t);
+ }
+ public void run() {
+ Thread.currentThread().setName("Ivy Runner Thread to execute an async callback");
+ cb.receive(c,args);
}
- public void run() { cb.receive(c,args); }
} // class Runner
private void traceDebug(String s){