1#ifndef SimTK_SimTKCOMMON_PARALLEL_2D_EXECUTOR_H_
2#define SimTK_SimTKCOMMON_PARALLEL_2D_EXECUTOR_H_
32class Parallel2DExecutor;
33class Parallel2DExecutorImpl;
37#ifndef SimTK_SIMTKCOMMON_DEFINING_PARALLEL_2D_EXECUTOR
38 extern template class PIMPLHandle<Parallel2DExecutor, Parallel2DExecutorImpl>;
This header provides declarations of the user-visible portion of the PIMPLHandle template classes tha...
#define SimTK_SimTKCOMMON_EXPORT
Definition SimTKcommon/include/SimTKcommon/internal/common.h:224
This class provides some infrastructure useful in making SimTK Private Implementation (PIMPL) classes...
Definition PrivateImplementation.h:106
Concrete subclasses of this abstract class represent tasks that can be executed by a Parallel2DExecut...
Definition Parallel2DExecutor.h:114
virtual ~Task()
Definition Parallel2DExecutor.h:116
virtual void initialize()
This method is invoked once by each worker thread before the task is executed.
Definition Parallel2DExecutor.h:127
virtual void execute(int i, int j)=0
This method defines the task to be performed.
virtual void finish()
This method is invoked once by each worker thread after all invocations of the task on that thread ar...
Definition Parallel2DExecutor.h:134
This class is used for performing multithreaded computations over two dimensional ranges.
Definition Parallel2DExecutor.h:73
Parallel2DExecutor(int gridSize, int numThreads=ParallelExecutor::getNumProcessors())
Construct a Parallel2DExecutor.
ParallelExecutor & getExecutor()
Get the ParallelExecutor used by this object to parallelize calculations.
RangeType
Definition Parallel2DExecutor.h:76
@ FullMatrix
Definition Parallel2DExecutor.h:76
void execute(Task &task, RangeType rangeType)
Execute a parallel task.
Parallel2DExecutor(int gridSize, ParallelExecutor &executor)
Construct a Parallel2DExecutor.
This class is used for performing multithreaded computations.
Definition ParallelExecutor.h:97
static int getNumProcessors()
Get the total number of available processor cores (physical cores and hyperthreads on Intel architect...
This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with o...
Definition Assembler.h:37