java.util.concurrent.ThreadPoolExecutor.runStateOf()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(142)

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

ThreadPoolExecutor.runStateOf介绍

暂无

代码示例

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

/**
 * State check needed by ScheduledThreadPoolExecutor to
 * enable running tasks during shutdown.
 *
 * @param shutdownOK true if should return true if SHUTDOWN
 */
final boolean isRunningOrShutdown(boolean shutdownOK) {
  int rs = runStateOf(ctl.get());
  return rs == RUNNING || (rs == SHUTDOWN && shutdownOK);
}

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

for (;;) {
  int c = ctl.get();
  int rs = runStateOf(c);
      break retry;
    if (runStateOf(c) != rs)
      continue retry;
      int rs = runStateOf(ctl.get());

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

int rs = runStateOf(c);

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

if (isRunning(c) ||
  runStateAtLeast(c, TIDYING) ||
  (runStateOf(c) == SHUTDOWN && ! workQueue.isEmpty()))
  return;
if (workerCountOf(c) != 0) { // Eligible to terminate

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * State check needed by ScheduledThreadPoolExecutor to
 * enable running tasks during shutdown.
 *
 * @param shutdownOK true if should return true if SHUTDOWN
 */
final boolean isRunningOrShutdown(boolean shutdownOK) {
  int rs = runStateOf(ctl.get());
  return rs == RUNNING || (rs == SHUTDOWN && shutdownOK);
}

代码示例来源:origin: jtulach/bck2brwsr

/**
 * State check needed by ScheduledThreadPoolExecutor to
 * enable running tasks during shutdown.
 *
 * @param shutdownOK true if should return true if SHUTDOWN
 */
final boolean isRunningOrShutdown(boolean shutdownOK) {
  int rs = runStateOf(ctl.get());
  return rs == RUNNING || (rs == SHUTDOWN && shutdownOK);
}

代码示例来源:origin: MobiVM/robovm

/**
 * State check needed by ScheduledThreadPoolExecutor to
 * enable running tasks during shutdown.
 *
 * @param shutdownOK true if should return true if SHUTDOWN
 */
final boolean isRunningOrShutdown(boolean shutdownOK) {
  int rs = runStateOf(ctl.get());
  return rs == RUNNING || (rs == SHUTDOWN && shutdownOK);
}

代码示例来源:origin: ibinti/bugvm

/**
 * State check needed by ScheduledThreadPoolExecutor to
 * enable running tasks during shutdown.
 *
 * @param shutdownOK true if should return true if SHUTDOWN
 */
final boolean isRunningOrShutdown(boolean shutdownOK) {
  int rs = runStateOf(ctl.get());
  return rs == RUNNING || (rs == SHUTDOWN && shutdownOK);
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * State check needed by ScheduledThreadPoolExecutor to
 * enable running tasks during shutdown.
 *
 * @param shutdownOK true if should return true if SHUTDOWN
 */
final boolean isRunningOrShutdown(boolean shutdownOK) {
  int rs = runStateOf(ctl.get());
  return rs == RUNNING || (rs == SHUTDOWN && shutdownOK);
}

代码示例来源:origin: org.codehaus.jsr166-mirror/jsr166

/**
 * State check needed by ScheduledThreadPoolExecutor to
 * enable running tasks during shutdown.
 *
 * @param shutdownOK true if should return true if SHUTDOWN
 */
final boolean isRunningOrShutdown(boolean shutdownOK) {
  int rs = runStateOf(ctl.get());
  return rs == RUNNING || (rs == SHUTDOWN && shutdownOK);
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * State check needed by ScheduledThreadPoolExecutor to
 * enable running tasks during shutdown.
 *
 * @param shutdownOK true if should return true if SHUTDOWN
 */
final boolean isRunningOrShutdown(boolean shutdownOK) {
  int rs = runStateOf(ctl.get());
  return rs == RUNNING || (rs == SHUTDOWN && shutdownOK);
}

代码示例来源:origin: org.apidesign.bck2brwsr/emul

/**
 * State check needed by ScheduledThreadPoolExecutor to
 * enable running tasks during shutdown.
 *
 * @param shutdownOK true if should return true if SHUTDOWN
 */
final boolean isRunningOrShutdown(boolean shutdownOK) {
  int rs = runStateOf(ctl.get());
  return rs == RUNNING || (rs == SHUTDOWN && shutdownOK);
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * State check needed by ScheduledThreadPoolExecutor to
 * enable running tasks during shutdown.
 *
 * @param shutdownOK true if should return true if SHUTDOWN
 */
final boolean isRunningOrShutdown(boolean shutdownOK) {
  int rs = runStateOf(ctl.get());
  return rs == RUNNING || (rs == SHUTDOWN && shutdownOK);
}

代码示例来源:origin: MobiVM/robovm

if (isRunning(c) ||
  runStateAtLeast(c, TIDYING) ||
  (runStateOf(c) == SHUTDOWN && ! workQueue.isEmpty()))
  return;
if (workerCountOf(c) != 0) { // Eligible to terminate

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

if (isRunning(c) ||
  runStateAtLeast(c, TIDYING) ||
  (runStateOf(c) == SHUTDOWN && ! workQueue.isEmpty()))
  return;
if (workerCountOf(c) != 0) { // Eligible to terminate

代码示例来源:origin: com.bugvm/bugvm-rt

if (isRunning(c) ||
  runStateAtLeast(c, TIDYING) ||
  (runStateOf(c) == SHUTDOWN && ! workQueue.isEmpty()))
  return;
if (workerCountOf(c) != 0) { // Eligible to terminate

代码示例来源:origin: org.codehaus.jsr166-mirror/jsr166

if (isRunning(c) ||
  runStateAtLeast(c, TIDYING) ||
  (runStateOf(c) == SHUTDOWN && ! workQueue.isEmpty()))
  return;
if (workerCountOf(c) != 0) { // Eligible to terminate

代码示例来源:origin: org.apidesign.bck2brwsr/emul

if (isRunning(c) ||
  runStateAtLeast(c, TIDYING) ||
  (runStateOf(c) == SHUTDOWN && ! workQueue.isEmpty()))
  return;
if (workerCountOf(c) != 0) { // Eligible to terminate

代码示例来源:origin: jtulach/bck2brwsr

if (isRunning(c) ||
  runStateAtLeast(c, TIDYING) ||
  (runStateOf(c) == SHUTDOWN && ! workQueue.isEmpty()))
  return;
if (workerCountOf(c) != 0) { // Eligible to terminate

代码示例来源:origin: ibinti/bugvm

if (isRunning(c) ||
  runStateAtLeast(c, TIDYING) ||
  (runStateOf(c) == SHUTDOWN && ! workQueue.isEmpty()))
  return;
if (workerCountOf(c) != 0) { // Eligible to terminate

相关文章

ThreadPoolExecutor类方法