PoolSelfLoopHandlerpublic class PoolSelfLoopHandler extends PoolLoopHandler
Fields Summary |
---|
private int | groupSize |
Constructors Summary |
---|
public PoolSelfLoopHandler(int start, int end, int size, int threads)
super(start, end, threads);
setSize(size);
|
Methods Summary |
---|
protected synchronized LoopRange | loopGetRange()
if (curLoop >= endLoop)
return null;
LoopRange ret = new LoopRange();
ret.start = curLoop;
curLoop += groupSize;
ret.end = (curLoop<endLoop)?curLoop:endLoop;
return ret;
| public synchronized void | setSize(int size)
groupSize = size;
reset();
|
|