groovyx.gpars.extra166y
Class PAS.FJSearchBase

java.lang.Object
  extended by jsr166y.ForkJoinTask<java.lang.Void>
      extended by jsr166y.RecursiveAction
          extended by groovyx.gpars.extra166y.PAS.FJSearchBase
All Implemented Interfaces:
java.io.Serializable, java.util.concurrent.Future<java.lang.Void>
Direct Known Subclasses:
PAS.FJDIndexOf, PAS.FJLIndexOf, PAS.FJOIndexOf, PAS.FJSelectAny
Enclosing class:
PAS

abstract static class PAS.FJSearchBase
extends jsr166y.RecursiveAction

Base for cancellable search tasks. Same idea as FJBase but cancels tasks when result nonnegative.


Field Summary
(package private)  int hi
           
(package private)  int lo
           
(package private)  PAS.FJSearchBase next
           
(package private)  AbstractParallelAnyArray pap
           
(package private)  java.util.concurrent.atomic.AtomicInteger result
           
 
Constructor Summary
PAS.FJSearchBase(AbstractParallelAnyArray pap, int lo, int hi, PAS.FJSearchBase next, java.util.concurrent.atomic.AtomicInteger result)
           
 
Method Summary
(package private) abstract  void atLeaf(int l, int h)
           
 void compute()
           
(package private) abstract  PAS.FJSearchBase newSubtask(int l, int h, PAS.FJSearchBase r)
           
 
Methods inherited from class jsr166y.RecursiveAction
exec, getRawResult, setRawResult
 
Methods inherited from class jsr166y.ForkJoinTask
adapt, adapt, adapt, cancel, complete, completeExceptionally, fork, get, get, getException, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyInvoke, quietlyJoin, reinitialize, tryUnfork
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pap

final AbstractParallelAnyArray pap

lo

final int lo

hi

final int hi

next

final PAS.FJSearchBase next

result

final java.util.concurrent.atomic.AtomicInteger result
Constructor Detail

PAS.FJSearchBase

PAS.FJSearchBase(AbstractParallelAnyArray pap,
                 int lo,
                 int hi,
                 PAS.FJSearchBase next,
                 java.util.concurrent.atomic.AtomicInteger result)
Method Detail

compute

public void compute()
Specified by:
compute in class jsr166y.RecursiveAction

newSubtask

abstract PAS.FJSearchBase newSubtask(int l,
                                     int h,
                                     PAS.FJSearchBase r)

atLeaf

abstract void atLeaf(int l,
                     int h)

Copyright © 2008–2012 Václav Pech. All Rights Reserved.