org.codehaus.gpars

groovyx.gpars.extra166y
[Java] Class PAS.FJSearchBase

java.lang.Object
  jsr166y.RecursiveAction
      groovyx.gpars.extra166y.PAS.FJSearchBase

static abstract class PAS.FJSearchBase
extends RecursiveAction

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


Field Summary
int hi

int lo

FJSearchBase next

AbstractParallelAnyArray pap

java.util.concurrent.atomic.AtomicInteger result

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

 
Method Summary
void atLeaf(int l, int h)

void compute()

FJSearchBase newSubtask(int l, int h, FJSearchBase r)

 

Field Detail

hi

final int hi


lo

final int lo


next

final FJSearchBase next


pap

final AbstractParallelAnyArray pap


result

final java.util.concurrent.atomic.AtomicInteger result


 
Constructor Detail

PAS.FJSearchBase

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


 
Method Detail

atLeaf

void atLeaf(int l, int h)


compute

public void compute()


newSubtask

FJSearchBase newSubtask(int l, int h, FJSearchBase r)


 

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