@SuppressWarnings("try") public boolean doTypeflow() throws InterruptedException { boolean didSomeWork; try (StopTimer ignored = typeFlowTimer.start()) { executor.start(); executor.complete(); didSomeWork = (executor.getPostedOperations() > 0); executor.shutdown(); } /* Initialize for the next iteration. */ executor.init(timing); return didSomeWork; }
assert executor.getPostedOperations() == 0; numTypes = universe.getTypes().size(); try (StopTimer t = checkObjectsTimer.start()) { } while (executor.getPostedOperations() != 0 || numTypes != universe.getTypes().size());