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
Parallel4< T, Arg1, Arg2, Arg3, Arg4 > Class Template Reference

#include <Parallel4.h>

Inheritance diagram for Parallel4< T, Arg1, Arg2, Arg3, Arg4 >:
ParallelBase

Public Member Functions

 Parallel4 (T *obj, void(T::*pmf)(int, Arg1, Arg2, Arg3, Arg4), Arg1 a1, Arg2 a2, Arg3 a3, Arg4 a4)
 
virtual ~Parallel4 ()
 Destroy the Parallel4 object - the threads will remain alive. More...
 

Public Attributes

T * obj_
 
void(T::* pmf_ )(int, Arg1, Arg2, Arg3, Arg4)
 
Arg1 a1
 
Arg2 a2
 
Arg3 a3
 
Arg4 a4
 

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

Parallel4 ( T *  obj,
void(T::*)(int, Arg1, Arg2, Arg3, Arg4)  pmf,
Arg1  a1,
Arg2  a2,
Arg3  a3,
Arg4  a4 
)

Create a Parallel4 object, using the specified member function instead of Parallel4. This will typically be used like:

Thread::Parallel4(Parallel4<MyClass>(this, &MyClass::mymemberfn), nthreads);

~Parallel4 ( )
virtual

Destroy the Parallel4 object - the threads will remain alive.

Member Function Documentation

void run ( int  proc)
protectedvirtual

The thread body

Implements ParallelBase.

Member Data Documentation

Arg1 a1
Arg2 a2
Arg3 a3
Arg4 a4
T* obj_
void(T::* pmf_)(int, Arg1, Arg2, Arg3, Arg4)

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