Go to the documentation of this file. 1 #ifndef SimTK_SimTKCOMMON_PARALLEL_WORK_QUEUE_H_
2 #define SimTK_SimTKCOMMON_PARALLEL_WORK_QUEUE_H_
32 class ParallelWorkQueue;
33 class ParallelWorkQueueImpl;
37 #ifndef SimTK_SIMTKCOMMON_DEFINING_PARALLEL_WORK_QUEUE
38 extern template class PIMPLHandle<ParallelWorkQueue, ParallelWorkQueueImpl>;
83 void addTask(
Task* task);
102 virtual void execute() = 0;
107 #endif // SimTK_SimTKCOMMON_PARALLEL_WORK_QUEUE_H_
static int getNumProcessors()
Get the total number of available processor cores (physical cores and hyperthreads on Intel architect...
This is a System that represents the dynamics of a particle moving along a smooth surface.
Definition: Assembler.h:37
#define SimTK_SimTKCOMMON_EXPORT
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:224
virtual ~Task()
Definition: ParallelWorkQueue.h:96
Concrete subclasses of this abstract class represent tasks that can be executed by a ParallelWorkQueu...
Definition: ParallelWorkQueue.h:94
This class is used for performing multithreaded computations. It maintains a queue of tasks to be exe...
Definition: ParallelWorkQueue.h:66