/** * Return the wait time after to try for the lock in a loop after which a * warning is logged. */ protected final int getWaitThreshold() { return NonReentrantLock.getWaitThreshold(); }
LogWriterI18n logger = null; int waitThreshold = 0; if (this.useWaitThreshold && (waitThreshold = getWaitThreshold()) > 0) { timeoutMillis = TimeUnit.SECONDS.toMillis(waitThreshold);