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

x33g5p2x  于2022-01-19 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(100)

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

ForkJoinPool.tryReleaseWaiter介绍

[英]Variant of signalWork to help release waiters on rescans. Tries once to release a waiter if active count < 0.
[中]信号工作的变体,帮助重新扫描时释放服务员。如果活动计数<0,尝试释放服务员一次。

代码示例

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

for (ForkJoinWorkerThread u : ws) {
  if (u != null && u.queueBase != u.queueTop) {
    if (tryReleaseWaiter())
      break;

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

for (ForkJoinWorkerThread u : ws) {
  if (u != null && u.queueBase != u.queueTop) {
    if (tryReleaseWaiter())
      break;

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

for (ForkJoinWorkerThread u : ws) {
  if (u != null && u.queueBase != u.queueTop) {
    if (tryReleaseWaiter())
      break;

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

if (u != null) {
      if (u.queueBase != u.queueTop &&
        !tryReleaseWaiter())
        rescanned = false; // contended
      if (w.eventCount != v)
  (queueBase != queueTop && !tryReleaseWaiter()))
  rescanned = false;
if (!rescanned)

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

signalWork();
else
  tryReleaseWaiter();

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

if (u != null) {
      if (u.queueBase != u.queueTop &&
        !tryReleaseWaiter())
        rescanned = false; // contended
      if (w.eventCount != v)
  (queueBase != queueTop && !tryReleaseWaiter()))
  rescanned = false;
if (!rescanned)

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

if (u != null) {
      if (u.queueBase != u.queueTop &&
        !tryReleaseWaiter())
        rescanned = false; // contended
      if (w.eventCount != v)
  (queueBase != queueTop && !tryReleaseWaiter()))
  rescanned = false;
if (!rescanned)

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

signalWork();
else
  tryReleaseWaiter();

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

signalWork();
else
  tryReleaseWaiter();

相关文章

ForkJoinPool类方法