javapns/src/main/java/javapns/notification/transmission/NotificationThreads.java
/**
	 * Wait for all threads to complete their work.
	 * 
	 * This method blocks and returns only when all threads are done.
	 * 
	 * @throws InterruptedException
	 */
Wait for all threads to complete their work.

This method blocks and returns only when all threads are done.


Wait for all threads to complete their work . This method blocks and returns only when all threads are done .
public void waitForAllThreads() throws InterruptedException {
		try {
			synchronized (finishPoint) {
				finishPoint.wait();
			}
		} catch (IllegalMonitorStateException e) {
			/* All threads are most likely already done, so we ignore this */
		}
	}
public void waitForAllThreads ( ) throws InterruptedException { try { synchronized ( finishPoint ) { finishPoint . wait ( ) ; } } catch ( IllegalMonitorStateException e ) { /* All threads are most likely already done, so we ignore this */ } }
Wait for all threads to complete their work.
Wait for all threads to complete their work .