SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Parallel< T > Class Template Reference

#include <Parallel.h>

Inheritance diagram for Parallel< T >:
ParallelBase

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...
 
- Protected Member Functions inherited from ParallelBase
 ParallelBase ()
 
virtual ~ParallelBase ()
 

Additional Inherited Members

- Protected Attributes inherited from ParallelBase
Semaphorewait_
 

Constructor & Destructor Documentation

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);

~Parallel ( )
virtual

Destroy the Parallel object - the threads will remain alive.

Member Function Documentation

void run ( int  proc)
protectedvirtual

The thread body

Implements ParallelBase.

Member Data Documentation

T* obj_
void(T::* pmf_)(int)

The documentation for this class was generated from the following file: