260261262263264265266267268269270
while (true) { try { if (database.isMultiThreaded()) { Thread.sleep(sleep); } else { database.wait(sleep); } } catch (InterruptedException e1) { // ignore } long slept = System.nanoTime() / 1000000 - now;
276277278279280281282283284285286
203204205206207208209210211212213
if (now - start > session.getLockTimeout()) { throw DbException.get(ErrorCode.LOCK_TIMEOUT_1, e.getCause(), ""); } try { if (sync == database) { database.wait(10); } else { Thread.sleep(10); } } catch (InterruptedException e1) { // ignore