Package org.zkoss.util

Examples of org.zkoss.util.WaitLock.waitUntilUnlock()


          _richlets.put(name, lock = new WaitLock());
          break; //then, load it
        }
      } //sync(_richlets)

      if (!lock.waitUntilUnlock(300*1000)) { //5 minute
        final PotentialDeadLockException ex =
          new PotentialDeadLockException(
          "Unable to load richlet "+name+"\nCause: conflict too long.");
        log.warningBriefly(ex); //very rare, possibly a bug
        throw ex;
View Full Code Here


        }
        //invalid, so remove it (if not updated by others)
        synchronized (this) {
          if (super.get(src) == ri) super.remove(src);
        }
      } else if (!lock.waitUntilUnlock(300*1000)) { //5 minute
        final PotentialDeadLockException ex =
          new PotentialDeadLockException(
          "Unable to load from "+src+"\nCause: conflict too long.");
        log.warningBriefly(ex); //very rare, possibly a bug
        throw ex;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.