HyCodeYourTale
classpublicPriority 3

ParallelRangeTask

com.hypixel.hytale.component.task.ParallelRangeTask

extends CountedCompleter

6

Methods

6

Public Methods

3

Fields

2

Constructors

Constants

intPARALLELISM= Math.max(ForkJoinPool.getCommonPoolParallelism(), 1)
intTASK_COUNT= Math.max(ForkJoinPool.getCommonPoolParallelism() << 2, 1)

Constructors

public
ParallelRangeTask(Supplier<D> supplier)
public
ParallelRangeTask(CountedCompleter<?> completer, Supplier<D> supplier)

Methods

Public Methods (6)

public
void compute()
@Override
public
D get(int i)
public
ParallelRangeTask<D> init(int from, int to)
@Nonnull
public
void reinitialize()
@Override
public
void set(int i, D data)
public
int size()

Fields

Public Fields (1)

publicvolatile boolean running

Private/Package Fields (2)

privateint size
privateParallelRangeTask.SubTask<D>[] subTasks