SelfLoopHandlerpublic class SelfLoopHandler extends LoopHandler
Fields Summary |
---|
protected int | groupSize |
Constructors Summary |
---|
public SelfLoopHandler(int start, int end, int size, int threads)
super(start, end, threads);
groupSize = 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;
|
|