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