org.openide.util.Mutex.init()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(121)

本文整理了Java中org.openide.util.Mutex.init()方法的一些代码示例,展示了Mutex.init()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mutex.init()方法的具体详情如下:
包路径:org.openide.util.Mutex
类名称:Mutex
方法名:init

Mutex.init介绍

[英]Initiates this Mutex
[中]启动这个互斥

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-util

/** Enhanced constructor that permits specifying an object to use as a lock.
* The lock is used on entry and exit to {@link #readAccess} and during the
* whole execution of {@link #writeAccess}. The ability to specify locks
* allows several <code>Mutex</code>es to synchronize on one object or to synchronize
* a mutex with another critical section.
*
* @param lock lock to use
*/
public Mutex(Object lock) {
  this.LOCK = init(lock);
  this.wrapper = null;
}

代码示例来源:origin: org.netbeans.api/org-openide-util

/** Default constructor.
*/
public Mutex() {
  this.LOCK = init(new InternalLock());
  this.wrapper = null;
}

代码示例来源:origin: org.netbeans.api/org-openide-util

/** @param privileged can enter privileged states of this Mutex
 * This helps avoid creating of custom Runnables.
 */
public Mutex(Privileged privileged) {
  if (privileged == null) {
    throw new IllegalArgumentException("privileged == null"); //NOI18N
  } else {
    this.LOCK = init(new InternalLock());
    privileged.setParent(this);
  }
  this.wrapper = null;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/** Enhanced constructor that permits specifying an object to use as a lock.
* The lock is used on entry and exit to {@link #readAccess} and during the
* whole execution of {@link #writeAccess}. The ability to specify locks
* allows several <code>Mutex</code>es to synchronize on one object or to synchronize
* a mutex with another critical section.
*
* @param lock lock to use
*/
public Mutex (Object lock) {
  init(lock);
}

代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util

/** Enhanced constructor that permits specifying an object to use as a lock.
* The lock is used on entry and exit to {@link #readAccess} and during the
* whole execution of {@link #writeAccess}. The ability to specify locks
* allows several <code>Mutex</code>es to synchronize on one object or to synchronize
* a mutex with another critical section.
*
* @param lock lock to use
*/
public Mutex(Object lock) {
  this.LOCK = init(lock);
  this.wrapper = null;
}

代码示例来源:origin: in.jlibs/org-openide-util

/** Enhanced constructor that permits specifying an object to use as a lock.
* The lock is used on entry and exit to {@link #readAccess} and during the
* whole execution of {@link #writeAccess}. The ability to specify locks
* allows several <code>Mutex</code>es to synchronize on one object or to synchronize
* a mutex with another critical section.
*
* @param lock lock to use
*/
public Mutex(Object lock) {
  init(lock);
  this.wrapper = null;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/** Enhanced constructor that permits specifying an object to use as a lock.
* The lock is used on entry and exit to {@link #readAccess} and during the
* whole execution of {@link #writeAccess}. The ability to specify locks
* allows several <code>Mutex</code>es to synchronize on one object or to synchronize
* a mutex with another critical section.
*
* @param lock lock to use
*/
public Mutex (Object lock) {
  init(lock);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/** Default constructor.
*/
public Mutex() {
  init(new InternalLock());
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/** Default constructor.
*/
public Mutex() {
  init(new InternalLock());
}

代码示例来源:origin: in.jlibs/org-openide-util

/** Default constructor.
*/
public Mutex() {
  init(new InternalLock());
  this.wrapper = null;
}

代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util

/** Default constructor.
*/
public Mutex() {
  this.LOCK = init(new InternalLock());
  this.wrapper = null;
}

代码示例来源:origin: in.jlibs/org-openide-util

/** @param privileged can enter privileged states of this Mutex
 * This helps avoid creating of custom Runnables.
 */
public Mutex(Privileged privileged) {
  if (privileged == null) {
    throw new IllegalArgumentException("privileged == null"); //NOI18N
  } else {
    init(new InternalLock());
    privileged.setParent(this);
  }
  this.wrapper = null;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/** @param privileged can enter privileged states of this Mutex 
 * This helps avoid creating of custom Runnables.
 */
public Mutex(Privileged privileged) {
  if (privileged == null) {
    throw new IllegalArgumentException("privileged == null"); //NOI18N
  } else {
    init(new InternalLock());
    privileged.setParent(this);
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/** @param privileged can enter privileged states of this Mutex 
 * This helps avoid creating of custom Runnables.
 */
public Mutex(Privileged privileged) {
  if (privileged == null) {
    throw new IllegalArgumentException("privileged == null"); //NOI18N
  } else {
    init(new InternalLock());
    privileged.setParent(this);
  }
}

代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util

/** @param privileged can enter privileged states of this Mutex
 * This helps avoid creating of custom Runnables.
 */
public Mutex(Privileged privileged) {
  if (privileged == null) {
    throw new IllegalArgumentException("privileged == null"); //NOI18N
  } else {
    this.LOCK = init(new InternalLock());
    privileged.setParent(this);
  }
  this.wrapper = null;
}

相关文章