示例#1
0
 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);
     }
 }