本文整理了Java中java.util.concurrent.ForkJoinPool.idleAwaitWork()
方法的一些代码示例,展示了ForkJoinPool.idleAwaitWork()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ForkJoinPool.idleAwaitWork()
方法的具体详情如下:
包路径:java.util.concurrent.ForkJoinPool
类名称:ForkJoinPool
方法名:idleAwaitWork
[英]If inactivating worker w has caused the pool to become quiescent, checks for pool termination, and, so long as this is not the only worker, waits for event for up to a given duration. On timeout, if ctl has not changed, terminates the worker, which will in turn wake up another worker to possibly repeat this process.
[中]如果禁用辅助进程w导致池处于静止状态,则检查池是否终止,并且只要这不是唯一的辅助进程,将在给定的持续时间内等待事件。超时时,如果ctl未更改,则终止工作进程,这将唤醒另一个工作进程,以可能重复此过程。
代码示例来源:origin: robovm/robovm
idleAwaitWork(w, nc, c);
代码示例来源:origin: org.codehaus.jsr166-mirror/jsr166
(int)c != 0 && parallelism + (int)(nc >> AC_SHIFT) == 0 &&
blockedCount == 0 && quiescerCount == 0)
idleAwaitWork(w, nc, c, v); // quiescent
for (boolean rescanned = false;;) {
if (w.eventCount != v)
代码示例来源:origin: MobiVM/robovm
idleAwaitWork(w, nc, c);
代码示例来源:origin: ibinti/bugvm
idleAwaitWork(w, nc, c);
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
idleAwaitWork(w, nc, c);
代码示例来源:origin: com.bugvm/bugvm-rt
idleAwaitWork(w, nc, c);
代码示例来源:origin: com.gluonhq/robovm-rt
idleAwaitWork(w, nc, c);
代码示例来源:origin: FlexoVM/flexovm
idleAwaitWork(w, nc, c);
代码示例来源:origin: org.apidesign.bck2brwsr/emul
(int)c != 0 && parallelism + (int)(nc >> AC_SHIFT) == 0 &&
blockedCount == 0 && quiescerCount == 0)
idleAwaitWork(w, nc, c, v); // quiescent
for (boolean rescanned = false;;) {
if (w.eventCount != v)
代码示例来源:origin: jtulach/bck2brwsr
(int)c != 0 && parallelism + (int)(nc >> AC_SHIFT) == 0 &&
blockedCount == 0 && quiescerCount == 0)
idleAwaitWork(w, nc, c, v); // quiescent
for (boolean rescanned = false;;) {
if (w.eventCount != v)
内容来源于网络,如有侵权,请联系作者删除!