287 test.achivedCount++;
288 }
289
290 int alltime = 0;
291 while (!test.isLocked) {
292 synchronized (test) {
293 try {
294 test.wait(1);
295 alltime++;
296 } catch (InterruptedException e) {
297 strace002.complain("" + e);
298 }
299 if (alltime > strace002.waitTime) {
300 throw new Failure("out of wait time");
301 }
302 }
303 }
304 }
305
306 if (strace002.DEPTH - currentDepth > 0) {
307 yield();
308 recursiveMethod();
309 }
310
311 currentDepth--;
312 }
313 }
|
287 test.achivedCount++;
288 }
289
290 int alltime = 0;
291 while (!test.isLocked) {
292 synchronized (test) {
293 try {
294 test.wait(1);
295 alltime++;
296 } catch (InterruptedException e) {
297 strace002.complain("" + e);
298 }
299 if (alltime > strace002.waitTime) {
300 throw new Failure("out of wait time");
301 }
302 }
303 }
304 }
305
306 if (strace002.DEPTH - currentDepth > 0) {
307 Thread.yield();
308 recursiveMethod();
309 }
310
311 currentDepth--;
312 }
313 }
|