SCIRun
5.0
|
#include <Parallel.h>
Public Member Functions | |
Parallel (T *obj, void(T::*pmf)(int)) | |
virtual | ~Parallel () |
Destroy the Parallel object - the threads will remain alive. More... | |
Public Attributes | |
T * | obj_ |
void(T::* | pmf_ )(int) |
Protected Member Functions | |
virtual void | run (int proc) |
The thread body More... | |
![]() | |
ParallelBase () | |
virtual | ~ParallelBase () |
Additional Inherited Members | |
![]() | |
Semaphore * | wait_ |
Parallel | ( | T * | obj, |
void(T::*)(int) | pmf | ||
) |
Create a parallel object, using the specified member function instead of parallel. This will typically be used like:
Thread::parallel(Parallel<MyClass>(this, &MyClass::mymemberfn), nthreads);
|
protectedvirtual |
The thread body
Implements ParallelBase.
T* obj_ |
void(T::* pmf_)(int) |