241242243244245246247248249250251
*/ public static boolean waitForAll(int timeout) { TdTimer myTimer = new TdTimer(); while (!ThreadQueue.isQueueIdle()) { sleep(sleepTime); if (myTimer.time() > timeout) { return false; } } return true; }