Home | History | Annotate | Download | only in Events

Lines Matching defs:thread

31     BlockedThread thread;
35 thread = new BlockedThread(logWriter,TESTED_THREAD);
38 logWriter.println("--> Main thread : started");
45 logWriter.println("main thread: start tested thread");
46 thread.start();
48 // wait and hold the lock until the second thread blocks
49 while (!thread.getState().equals(Thread.State.valueOf("BLOCKED"))){
50 Thread.yield();
51 logWriter.println("main thread: Waiting for second thread to attempt to lock a monitor");
54 logWriter.println("--> main thread: finish test");
58 static class BlockedThread extends Thread {