Ejemplo n.º 1
0
 protected void enterAsyncTask() {
   asyncCounter.increase();
 }
Ejemplo n.º 2
0
 protected void exitAsyncTask() {
   asyncCounter.decrease();
 }
Ejemplo n.º 3
0
 /**
  * Wait until all daemon threads running in this engine have terminated.
  *
  * @throws InterruptedException if the current thread has been interrupted
  */
 public void waitForAsyncTasks() throws InterruptedException {
   asyncCounter.waitTillDone();
 }