本文整理了Java中java.util.concurrent.ThreadPoolExecutor.compareAndDecrementWorkerCount()
方法的一些代码示例,展示了ThreadPoolExecutor.compareAndDecrementWorkerCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ThreadPoolExecutor.compareAndDecrementWorkerCount()
方法的具体详情如下:
包路径:java.util.concurrent.ThreadPoolExecutor
类名称:ThreadPoolExecutor
方法名:compareAndDecrementWorkerCount
[英]Attempts to CAS-decrement the workerCount field of ctl.
[中]尝试减少ctl的workerCount字段。
代码示例来源:origin: robovm/robovm
/**
* Decrements the workerCount field of ctl. This is called only on
* abrupt termination of a thread (see processWorkerExit). Other
* decrements are performed within getTask.
*/
private void decrementWorkerCount() {
do {} while (! compareAndDecrementWorkerCount(ctl.get()));
}
代码示例来源:origin: robovm/robovm
if (compareAndDecrementWorkerCount(c))
return null;
continue;
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Decrements the workerCount field of ctl. This is called only on
* abrupt termination of a thread (see processWorkerExit). Other
* decrements are performed within getTask.
*/
private void decrementWorkerCount() {
do {} while (! compareAndDecrementWorkerCount(ctl.get()));
}
代码示例来源:origin: MobiVM/robovm
/**
* Decrements the workerCount field of ctl. This is called only on
* abrupt termination of a thread (see processWorkerExit). Other
* decrements are performed within getTask.
*/
private void decrementWorkerCount() {
do {} while (! compareAndDecrementWorkerCount(ctl.get()));
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Decrements the workerCount field of ctl. This is called only on
* abrupt termination of a thread (see processWorkerExit). Other
* decrements are performed within getTask.
*/
private void decrementWorkerCount() {
do {} while (! compareAndDecrementWorkerCount(ctl.get()));
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Decrements the workerCount field of ctl. This is called only on
* abrupt termination of a thread (see processWorkerExit). Other
* decrements are performed within getTask.
*/
private void decrementWorkerCount() {
do {} while (! compareAndDecrementWorkerCount(ctl.get()));
}
代码示例来源:origin: ibinti/bugvm
/**
* Decrements the workerCount field of ctl. This is called only on
* abrupt termination of a thread (see processWorkerExit). Other
* decrements are performed within getTask.
*/
private void decrementWorkerCount() {
do {} while (! compareAndDecrementWorkerCount(ctl.get()));
}
代码示例来源:origin: org.codehaus.jsr166-mirror/jsr166
/**
* Decrements the workerCount field of ctl. This is called only on
* abrupt termination of a thread (see processWorkerExit). Other
* decrements are performed within getTask.
*/
private void decrementWorkerCount() {
do {} while (! compareAndDecrementWorkerCount(ctl.get()));
}
代码示例来源:origin: org.apidesign.bck2brwsr/emul
/**
* Decrements the workerCount field of ctl. This is called only on
* abrupt termination of a thread (see processWorkerExit). Other
* decrements are performed within getTask.
*/
private void decrementWorkerCount() {
do {} while (! compareAndDecrementWorkerCount(ctl.get()));
}
代码示例来源:origin: jtulach/bck2brwsr
/**
* Decrements the workerCount field of ctl. This is called only on
* abrupt termination of a thread (see processWorkerExit). Other
* decrements are performed within getTask.
*/
private void decrementWorkerCount() {
do {} while (! compareAndDecrementWorkerCount(ctl.get()));
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Decrements the workerCount field of ctl. This is called only on
* abrupt termination of a thread (see processWorkerExit). Other
* decrements are performed within getTask.
*/
private void decrementWorkerCount() {
do {} while (! compareAndDecrementWorkerCount(ctl.get()));
}
代码示例来源:origin: MobiVM/robovm
if (compareAndDecrementWorkerCount(c))
return null;
continue;
代码示例来源:origin: ibinti/bugvm
if (compareAndDecrementWorkerCount(c))
return null;
continue;
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
if (compareAndDecrementWorkerCount(c))
return null;
continue;
代码示例来源:origin: com.bugvm/bugvm-rt
if (compareAndDecrementWorkerCount(c))
return null;
continue;
代码示例来源:origin: com.gluonhq/robovm-rt
if (compareAndDecrementWorkerCount(c))
return null;
continue;
代码示例来源:origin: FlexoVM/flexovm
if (compareAndDecrementWorkerCount(c))
return null;
continue;
代码示例来源:origin: org.apidesign.bck2brwsr/emul
if (compareAndDecrementWorkerCount(c))
return null;
代码示例来源:origin: org.codehaus.jsr166-mirror/jsr166
if (compareAndDecrementWorkerCount(c))
return null;
代码示例来源:origin: jtulach/bck2brwsr
if (compareAndDecrementWorkerCount(c))
return null;
内容来源于网络,如有侵权,请联系作者删除!