java.util.concurrent.locks.ReentrantLock.getOwner()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(145)

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

ReentrantLock.getOwner介绍

[英]Returns the thread that currently owns this lock, or null if not owned. When this method is called by a thread that is not the owner, the return value reflects a best-effort approximation of current lock status. For example, the owner may be momentarily null even if there are threads trying to acquire the lock but have not yet done so. This method is designed to facilitate construction of subclasses that provide more extensive lock monitoring facilities.
[中]

代码示例

代码示例来源:origin: kilim/kilim

public Thread getOwner() {
  return super.getOwner();
}

代码示例来源:origin: mulesoft/mule

@Override
 public Thread getOwner() {
  return super.getOwner();
 }
}

代码示例来源:origin: org.mule.modules/mule-module-launcher

@Override
  public Thread getOwner()
  {
    return super.getOwner();
  }
}

代码示例来源:origin: org.apache.orc/orc-core

public Thread getOwner() {
  return super.getOwner();
 }
}

代码示例来源:origin: com.github.veithen.cosmos/cosmos-equinox

final public Thread getOwner() {
    return super.getOwner();
  }
}

代码示例来源:origin: org.jboss.genericjms/generic-jms-ra-jar

/**
 * {@inheritDoc}
 */
public Thread getOwner() {
  return super.getOwner();
}

代码示例来源:origin: org.mule.runtime/mule-module-deployment

@Override
 public Thread getOwner() {
  return super.getOwner();
 }
}

代码示例来源:origin: org.eclipse/osgi

final public Thread getOwner() {
    return super.getOwner();
  }
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.osgi

final public Thread getOwner() {
    return super.getOwner();
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi

final public Thread getOwner() {
    return super.getOwner();
  }
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.osgi

final public Thread getOwner() {
    return super.getOwner();
  }
}

代码示例来源:origin: org.apache.hive/hive-orc

public Thread getOwner() {
  return super.getOwner();
 }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.osgi

final public Thread getOwner() {
    return super.getOwner();
  }
}

相关文章