⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reentrantlock.java

📁 java开源的企业总线.xmlBlaster
💻 JAVA
字号:
/*------------------------------------------------------------------------------Name:      ReentrantLock.javaProject:   xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE fileComment:   Create unique timestamp------------------------------------------------------------------------------*/package org.xmlBlaster.util;/** * Extends a reentrantLock of Doug Lea and adds a lock() method similar * to the new java.util.concurrent.locks.ReentrantLock of JDK 1.5.  * @author <a href="mailto:xmlBlaster@marcelruff.info">Marcel Ruff</a> * @see org.xmlBlaster.test.classtest.ReentrantLockTest */public final class ReentrantLock extends EDU.oswego.cs.dl.util.concurrent.ReentrantLock{   /**    * Acquires the lock, same as acquire(), but ignoring a InterruptedException.     */   public void lock() {      while (true) {         try {            super.acquire();            return;         }         catch (InterruptedException e) {         }      }   }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -