class ConcurrentQ {

	public void waitUntilDone() throws InterruptedException, Exception {
		lock.lockInterruptibly();
		try {
			checkException();
			while (!isEmpty()) {
				tracker.waitForNext();
				checkException();
			}
		}
		finally {
			lock.unlock();
		}
	}

	public  ConcurrentQ(String name, QCallback<I, R> callback);
	public  ConcurrentQ(QCallback<I, R> callback, Queue<I> queue, GThreadPool threadPool,
			QItemListener<I, R> listener, boolean collectResults, int maxInProgress,
			boolean jobsReportProgress);

}