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

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

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

Mutex.doLog介绍

暂无

代码示例

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

/** Leaves this mutex */
final void leave(Thread t) {
  boolean log = LOG.isLoggable(Level.FINER);
  if (log) doLog("Leaving {0}", grantedMode); // NOI18N
  leaveImpl(t);
  if (log) doLog("Leaving exit: {0}", grantedMode); // NOI18N
}

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

/** privilegedEnter serves for processing posted requests */
private boolean reenter(Thread t, int mode) {
  boolean log = LOG.isLoggable(Level.FINER);
  if (log) doLog("Re-Entering {0}", mode); // NOI18N
  boolean ret = reenterImpl(t, mode);
  if (log) doLog("Re-Entering exit: {0}", ret); // NOI18N
  return ret;
}

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

/** enters this mutex with given mode
* @param requested one of S, X
* @param t
*/
private boolean enter(int requested, Thread t, boolean block) {
  boolean log = LOG.isLoggable(Level.FINER);
  if (log) doLog("Entering {0}, {1}", requested, block); // NOI18N
  boolean ret = enterImpl(requested, t, block);
  if (log) doLog("Entering exit: {0}", ret); // NOI18N
  return ret;
}

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

doLog("Processing posted requests: {0}", postedMode); // NOI18N
try {
  if (needLock) { // go from S to X or CHAIN

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

/** Leaves this mutex */
final void leave(Thread t) {
  boolean log = LOG.isLoggable(Level.FINE);
  if (log) doLog("Leaving {0}", grantedMode); // NOI18N
  leaveImpl(t);
  if (log) doLog("Leaving exit: {0}", grantedMode); // NOI18N
}

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

/** privilegedEnter serves for processing posted requests */
private boolean reenter(Thread t, int mode) {
  boolean log = LOG.isLoggable(Level.FINE);
  if (log) doLog("Re-Entering {0}", mode); // NOI18N
  boolean ret = reenterImpl(t, mode);
  if (log) doLog("Re-Entering exit: {0}", ret); // NOI18N
  return ret;
}

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

/** enters this mutex with given mode
* @param requested one of S, X
* @param t
*/
private boolean enter(int requested, Thread t, boolean block) {
  boolean log = LOG.isLoggable(Level.FINER);
  if (log) doLog("Entering {0}, {1}", requested, block); // NOI18N
  boolean ret = enterImpl(requested, t, block);
  if (log) doLog("Entering exit: {0}", ret); // NOI18N
  return ret;
}

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

/** Leaves this mutex */
final void leave(Thread t) {
  boolean log = LOG.isLoggable(Level.FINER);
  if (log) doLog("Leaving {0}", grantedMode); // NOI18N
  leaveImpl(t);
  if (log) doLog("Leaving exit: {0}", grantedMode); // NOI18N
}

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

/** enters this mutex with given mode
* @param requested one of S, X
* @param t
*/
private boolean enter(int requested, Thread t, boolean block) {
  boolean log = LOG.isLoggable(Level.FINE);
  if (log) doLog("Entering {0}, {1}", requested, block); // NOI18N
  boolean ret = enterImpl(requested, t, block);
  if (log) doLog("Entering exit: {0}", ret); // NOI18N
  return ret;
}

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

/** privilegedEnter serves for processing posted requests */
private boolean reenter(Thread t, int mode) {
  boolean log = LOG.isLoggable(Level.FINER);
  if (log) doLog("Re-Entering {0}", mode); // NOI18N
  boolean ret = reenterImpl(t, mode);
  if (log) doLog("Re-Entering exit: {0}", ret); // NOI18N
  return ret;
}

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

doLog("Processing posted requests: {0}", postedMode); // NOI18N
try {
  if (needLock) { // go from S to X or CHAIN

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

doLog("Processing posted requests: {0}", postedMode); // NOI18N
try {
  if (needLock) { // go from S to X or CHAIN

相关文章