Home | History | Annotate | Download | only in ThreadStress

Lines Matching defs:lock

54         // Lock used to notify threads performing Operation.WAIT
55 final Object lock = new Object();
99 threadStresses[t] = new ThreadStress(lock, t, operations);
157 synchronized (lock) {
158 lock.notifyAll();
175 private final Object lock;
180 private ThreadStress(Object lock, int id, Operation[] operations) {
181 this.lock = lock;
216 synchronized (lock) {
218 lock.wait(100, 0);
225 synchronized (lock) {
227 lock.wait();