131132133134135136137138139140141
// block until one becomes available try { ThreadPoolThread tpt = pool.borrowThread(); tpt.setRunnable(r); tpt.start(); threads.addElement(tpt); } catch (Exception ex) { throw new BuildException(ex);