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

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

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

Mutex.compatibleLocks介绍

[英]Decides whether two locks are compatible.?
[中]决定两个锁是否兼容。?

代码示例

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

/** @param requested is requested mode of locking
* @return <tt>true</tt> if and only if current mode and requested mode are compatible
*/
private boolean isCompatible(int requested) {
  return compatibleLocks(grantedMode, requested);
}

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

/** @param requested is requested mode of locking
* @return <tt>true</tt> if and only if current mode and requested mode are compatible
*/
private boolean isCompatible(int requested) {
  return compatibleLocks(grantedMode, requested);
}

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

if (compatibleLocks(grantedMode, qc.mode)) {  // woken S -> should I wake X? -> no
  waiters.remove(i--);
  qc.wakeMeUp();

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

if (compatibleLocks(grantedMode, qc.mode)) {  // woken S -> should I wake X? -> no
  waiters.remove(i--);
  qc.wakeMeUp();

相关文章