Lines Matching refs:Control
165 private static class Control {
193 private Control control;
196 Test(String name, String[] data, Collator collator, Random r, Control control) {
200 this.control = control;
206 synchronized (control) {
207 while (!control.go()) {
208 control.wait();
212 while (control.go()) {
216 control.fail(name + ": incorrect sort");
222 control.fail(name + " " + e.getMessage());
227 private void runThreads(Thread[] threads, Control control) {
233 control.start();
238 } while (control.go() && System.currentTimeMillis() < stopTime);
240 control.stop();
249 if (control.fail != null) {
250 errln(control.fail);
257 final Control control = new Control();
270 r, control);
274 runThreads(threads, control);
281 Control control = new Control();
286 r, control);
290 runThreads(threads, control);