protected static class PiParallel.ThreadLimitedOperation<T> extends Object implements Operation<T>
ApfloatContext.setNumberOfProcessors(int)
to some value.Constructor and Description |
---|
ThreadLimitedOperation(Operation<T> operation,
int numberOfProcessors)
Wrap an existing operation to a thread limited context.
|
public ThreadLimitedOperation(Operation<T> operation, int numberOfProcessors)
operation
- The operation whose execution will have a limited number of threads available.numberOfProcessors
- The maximum number of threads that can be used in the execution.Copyright © 2017. All rights reserved.