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