void acquireTestLock() { while (O.trueDat()) { var otherLock = db.TestLocksTable.TEST_LOCK.tryAcquireLockOnce("test", GetType().FullName); if (otherLock.Equals(db.TestLocksTable.NONE)) { return; } LogC.info("waiting for test lock " + otherLock); O.sleep(350); } }