class ConcurrentQ {

	public Collection<QResult<I, R>> waitForResults() throws InterruptedException {
		lock.lockInterruptibly();
		try {
			tracker.waitUntilDone();
			Collection<QResult<I, R>> returnValue = resultList;
			resultList = new LinkedList<>();
			return returnValue;
		}
		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);

}