Esempio n. 1
0
 protected void enterAsyncTask() {
   asyncCounter.increase();
 }
Esempio n. 2
0
 protected void exitAsyncTask() {
   asyncCounter.decrease();
 }
Esempio 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();
 }