/** * Creates a LoopController and allows the user to define the number of threads the barriers will * await execution on. * * @param numThreads The number of different threads the barriers will await execution on. * @return A new LoopController. */ public static LoopController create( final int numThreads ) { return new LoopController(numThreads); }
/** * Creates a LoopController with barriers awaiting 2 threads. * * @return A new LoopController. */ public static LoopController create() { return new LoopController(2); }