diff options
author | jestin | 2012-08-23 19:39:32 +0000 |
---|---|---|
committer | jestin | 2012-08-23 19:39:32 +0000 |
commit | e3b0fb9534d783d62245be8d7777f35d34e6d59d (patch) | |
tree | 1216b70c18c478eb1e132c749b4ce4c09ae1b786 /src/SelfIvyClient.java | |
parent | e854a58a81ec90e419a4b3effa5a83caac05df90 (diff) | |
download | ivy-java-e3b0fb9534d783d62245be8d7777f35d34e6d59d.zip ivy-java-e3b0fb9534d783d62245be8d7777f35d34e6d59d.tar.gz ivy-java-e3b0fb9534d783d62245be8d7777f35d34e6d59d.tar.bz2 ivy-java-e3b0fb9534d783d62245be8d7777f35d34e6d59d.tar.xz |
Diffstat (limited to 'src/SelfIvyClient.java')
-rw-r--r-- | src/SelfIvyClient.java | 15 |
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){ |