Lines Matching refs:lock
122 public final NamedLock lock; field in Monitors.LockController
131 public LockController(NamedLock lock) { in LockController() argument
132 this(lock, 10 * 1000); in LockController()
134 public LockController(NamedLock lock, long timeout) { in LockController() argument
135 this.lock = lock; in LockController()
167 throw new TestException("We don't have any runner holding " + lock); in suspendWorker()
190 synchronized (lock) { in DoLock()
208 lock.DoNotify(); in DoLock()
211 lock.DoNotifyAll(); in DoLock()
214 lock.DoWait(timeout); in DoLock()
217 lock.DoWait(); in DoLock()
235 }, "Locker thread " + cnt.getAndIncrement() + " for " + lock); in DoLock()
243 if (IsLocked() && Objects.equals(runner, Monitors.getObjectMonitorUsage(lock).owner)) { in waitForLockToBeHeld()
256 !Arrays.asList(Monitors.getObjectMonitorUsage(lock).notifyWaiters).contains(runner)); in waitForNotifySleep()
267 !Arrays.asList(Monitors.getObjectMonitorUsage(lock).waiters).contains(runner)); in waitForContendedSleep()