FileDocCategorySizeDatePackage
PoolSelfLoopHandler.javaAPI DocExample1874Thu Feb 04 16:10:42 GMT 1999None

PoolSelfLoopHandler

public 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 LoopRangeloopGetRange()

		if (curLoop >= endLoop)
			return null;
		LoopRange ret = new LoopRange();
		ret.start = curLoop;
		curLoop += groupSize;
		ret.end = (curLoop<endLoop)?curLoop:endLoop;
		return ret;
	
public synchronized voidsetSize(int size)

		groupSize = size;
		reset();