Package edu.rit.pj
Class WorkerForLoop
java.lang.Object
edu.rit.pj.WorkerConstruct
edu.rit.pj.WorkerForLoop
- Direct Known Subclasses:
WorkerIntegerForLoop
,WorkerIntegerStrideForLoop
,WorkerLongForLoop
,WorkerLongStrideForLoop
Class WorkerForLoop is the abstract base class for a worker for loop that is
executed inside a WorkerRegion. There are four variations of a
worker for loop, depending on the loop index data type and on whether the
loop stride is implicit or explicit. There is a subclass for each variation;
see the subclasses for further information. The subclasses are:
-
Class WorkerIntegerForLoop -- loop index is type
int
, loop stride is implicit (+1). -
Class WorkerIntegerStrideForLoop -- loop index is type
int
, loop stride is explicitly specified. -
Class WorkerLongForLoop -- loop index is type
long
, loop stride is implicit (+1). -
Class WorkerLongStrideForLoop -- loop index is type
long
, loop stride is explicitly specified.
- Version:
- 17-Nov-2009
- Author:
- Alan Kaminsky
-
Constructor Summary
-
Method Summary
Methods inherited from class edu.rit.pj.WorkerConstruct
getThreadCount, getThreadIndex, getTotalThreadCount, isExecutingInParallel, isMasterThread, region, team
-
Constructor Details
-
WorkerForLoop
public WorkerForLoop()Construct a new worker for loop.
-