/** * Ticks the animation over as fast as possible. */ public void run() { if (true) { for (;;) { time.setTime(new Date()); ticker.t = timedDocumentRoot.convertWallclockTime(time); try { runnableQueue.invokeAndWait(ticker); } catch (InterruptedException e) { return; } } } else { ticker.t = 1; while (ticker.t < 10) { try { Thread.sleep(1000); } catch (InterruptedException ie) { } try { runnableQueue.invokeAndWait(ticker); } catch (InterruptedException e) { return; } ticker.t++; } } }
/** * Ticks the animation over as fast as possible. */ public void run() { if (true) { for (;;) { time.setTime(new Date()); ticker.t = timedDocumentRoot.convertWallclockTime(time); try { runnableQueue.invokeAndWait(ticker); } catch (InterruptedException e) { return; } } } else { ticker.t = 1; while (ticker.t < 10) { try { Thread.sleep(1000); } catch (InterruptedException ie) { } try { runnableQueue.invokeAndWait(ticker); } catch (InterruptedException e) { return; } ticker.t++; } } }
/** * Ticks the animation over as fast as possible. */ public void run() { if (true) { for (;;) { time.setTime(new Date()); ticker.t = timedDocumentRoot.convertWallclockTime(time); try { runnableQueue.invokeAndWait(ticker); } catch (InterruptedException e) { return; } } } else { ticker.t = 1; while (ticker.t < 10) { try { Thread.sleep(1000); } catch (InterruptedException ie) { } try { runnableQueue.invokeAndWait(ticker); } catch (InterruptedException e) { return; } ticker.t++; } } }
case INVOKE_AND_WAIT: System.out.println(" InvW #" + idx); rq.invokeAndWait(rqRable); System.out.println("Done InvW #" + idx); break;