Home | History | Annotate | Download | only in concurrent

Lines Matching defs:lock

23 import java.util.concurrent.locks.Lock;
36 private Lock[] plainLocks;
37 private Lock[] detectingLocks;
43 this.plainLocks = new Lock[lockNestingDepth];
47 this.detectingLocks = new Lock[lockNestingDepth];
49 detectingLocks[i] = factory.newReentrantLock("Lock" + i);
61 private void lockAndUnlock(Lock lock, int reps) {
63 lock.lock();
64 lock.unlock();
76 private void lockAndUnlockNested(Lock[] locks, int reps) {
79 locks[j].lock();